Details
Description
Given $date instanceof \DateTime, instead of this:
$this->entityManager->createQuery(' ... p.date >= :pdate')
->setParameters(array('pdate' => $date), array('pdate' => 'datetime'))
->execute()
I would love to be able to use this:
$this->entityManager->createQuery(' ... p.date >= :pdate')
->execute(array('pdate' => $date))
Even when using setParameters() - which you need to do, e.g. when using getSingleResult(), it would be nice to be able to leave that out for DateTime instances - seems to be about the only thing that is not handled transparently.
This was already fixed by ParameterTypeInferer released in 2.1