[DDC-2564] PersistentCollection - coll is not initialized for Collection methods Created: 22/Jul/13  Updated: 10/Aug/13  Resolved: 10/Aug/13

Status: Resolved
Project: Doctrine 2 - ORM
Component/s: ORM
Affects Version/s: None
Fix Version/s: 2.4, 2.3.5
Security Level: All

Type: Bug Priority: Major
Reporter: Austin Morris Assignee: Benjamin Eberlei
Resolution: Fixed Votes: 0
Labels: None


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.

Generated at Tue Dec 01 15:08:25 EST 2015 using JIRA 6.4.10#64025-sha1:5b8b74079161cd76a20ab66dda52747ee6701bd6.