mirror of
https://github.com/doctrine/orm.git
synced 2026-04-29 09:23:20 +02:00
DDC-2319: [GH-590] DQL Query: process ArrayCollection values to ease development #2912
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 25, 2013).
Originally assigned to: @guilhermeblanco on GitHub.
Jira issue originally created by user @beberlei:
This issue is created automatically through a Github pull request on behalf of michaelperrin:
Url: https://github.com/doctrine/doctrine2/pull/590
Message:
I added some code to ease "where in" parameter binding.
As you know, when a where condition is added, the object itself can be passed as a parameter and it's id is automatically retrieved:
Where
$categoryis an object.But it doesn't work for collections:
Where categories is an
ArrayCollectionobject (retrieved from a many to one relation for instance).This doesn't work in the current version of Doctrine, and my PR solved that.
So far, the only solution is to do the following:
And this is pretty borring when you have to do it several times for several entities.
Note that I didn't add any unit test for this feature. Can you explain me where I should add the test?
Thanks!
@doctrinebot commented on GitHub (Dec 17, 2013):
Comment created by @doctrinebot:
A related Github Pull-Request [GH-590] was closed:
https://github.com/doctrine/doctrine2/pull/590
@doctrinebot commented on GitHub (Dec 17, 2013):
Comment created by @ocramius:
Merged: https://github.com/doctrine/doctrine2/commit/423ea00539d11e9a12e952a7e9144bd2c53019dc
@doctrinebot commented on GitHub (Dec 17, 2013):
Issue was closed with resolution "Fixed"
@doctrinebot commented on GitHub (Apr 30, 2014):
Comment created by @doctrinebot:
A related Github Pull-Request [GH-590] was closed:
https://github.com/doctrine/dbal/pull/590
@doctrinebot commented on GitHub (Jul 31, 2014):
Comment created by @doctrinebot:
A related Github Pull-Request [GH-590] was closed:
https://github.com/doctrine/dbal/pull/590