Doctrine 2 - ORM
  1. Doctrine 2 - ORM
  2. DDC-2564

PersistentCollection - coll is not initialized for Collection methods

    Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.4, 2.3.5
    • Component/s: ORM
    • Security Level: All
    • Labels:
      None

      Description

      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.

        Activity

        There are no comments yet on this issue.

          People

          • Assignee:
            Benjamin Eberlei
            Reporter:
            Austin Morris
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: