mirror of
https://github.com/doctrine/orm.git
synced 2026-03-23 22:42:18 +01:00
DDC-697: Support for DateTime in query parameters #859
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 (Jul 19, 2010).
Originally assigned to: @beberlei on GitHub.
Jira issue originally created by user vrtak-cz:
Supports native DateTime in query parameters. (for more universal using)
Now display "Object of class DateTime could not be converted to string" error
@doctrinebot commented on GitHub (Jul 19, 2010):
Comment created by @beberlei:
This is another case for possible optimizations in my opinion, is it possible to access the parameter needles from the ResultSetMapping? If so then we should add a convertToParam method to each Doctrine\DBAL\Types\Type and allow conversions to take place or just do nothing. This woulld help with this issue, aswell as with other more complex types to be bound.
@doctrinebot commented on GitHub (Jul 19, 2010):
Comment created by @beberlei:
This affects the following loop inside Doctrine\ORM\Query:
http://github.com/doctrine/doctrine2/blob/master/lib/Doctrine/ORM/Query.php#L234
@doctrinebot commented on GitHub (Jul 20, 2010):
Comment created by @beberlei:
According to Roman this should already be possible with:
can you verify this?
@doctrinebot commented on GitHub (Jul 20, 2010):
Comment created by vrtak-cz:
No this featrue not work for me. (Same error message) I'm tested at latest BETA release & latest code from master branch (GitHub).
@doctrinebot commented on GitHub (Jul 21, 2010):
Comment created by @beberlei:
Fixed, QueryBuilder::setParameter() and QueryBuilder::setParameters() did not yet support setting parameter types.
@doctrinebot commented on GitHub (Jul 21, 2010):
Issue was closed with resolution "Fixed"