[DDC-2015] [GH-437] Fixes PersistentCollection::matching() when collection is not initialize... Created: 07/Sep/12 Updated: 20/Dec/13 Resolved: 17/Sep/12
|Project:||Doctrine 2 - ORM|
|Reporter:||Benjamin Eberlei||Assignee:||Benjamin Eberlei|
This issue is created automatically through a Github pull request on behalf of sroddy:
...d and there are NEW entities in the collection.
If you have a PersistentCollection not already initialized and you add something to it and if you call matching() on it, that method doesn't return the elements you have just added even if they match the criteria.
This fixes the behaviour checking for any matching element that is NEW and merging it in the returned ArrayCollection.
|Comment by Benjamin Eberlei [ 07/Sep/12 ]|
A related Github Pull-Request [GH-437] was closed
|Comment by Doctrine Bot [ 20/Dec/13 ]|
A related Github Pull-Request [GH-437] was closed: