[DDC-2564] PersistentCollection - coll is not initialized for Collection methods Created: 22/Jul/13 Updated: 10/Aug/13 Resolved: 10/Aug/13
|Project:||Doctrine 2 - ORM|
|Fix Version/s:||2.4, 2.3.5|
|Reporter:||Austin Morris||Assignee:||Benjamin Eberlei|
In Doctrine\ORM\PersistentCollection, the property coll represents the lazily loaded collection. The collection is not property initialized when using some of the methods defined in Doctrine\Common\Collection\Collection interface. These methods include key(), current(), and next(). Note that add() is excluded in order to allow extra lazy loading.
Since the collection, coll, is not initialized using these methods results in unexpected behavior.