mirror of
https://github.com/doctrine/orm.git
synced 2026-03-23 22:42:18 +01:00
DDC-1021: Automatically infer type when DateTime is used as parameter in queries #1274
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @doctrinebot on GitHub (Feb 8, 2011).
Originally assigned to: @guilhermeblanco on GitHub.
Jira issue originally created by user k-fish:
Given
$date instanceof \DateTime, instead of this:I would love to be able to use this:
Even when using
setParameters()- which you need to do, e.g. when usinggetSingleResult(), 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.@doctrinebot commented on GitHub (Aug 16, 2011):
Comment created by @guilhermeblanco:
This was already fixed by ParameterTypeInferer released in 2.1
@doctrinebot commented on GitHub (Aug 16, 2011):
Issue was closed with resolution "Fixed"