Uploaded image for project: 'Doctrine 2 - ORM'
  1. Doctrine 2 - ORM
  2. DDC-2564

PersistentCollection - coll is not initialized for Collection methods

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: 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

        austinsmorris Austin Morris created issue -
        austinsmorris Austin Morris made changes -
        Field Original Value New Value
        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 add(), key(), current(), and next().

        Since the collection, coll, is not initialized using these methods results in unexpected behavior.
        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.
        beberlei Benjamin Eberlei made changes -
        Status Open [ 1 ] Resolved [ 5 ]
        Fix Version/s 2.4 [ 10321 ]
        Fix Version/s 2.3.5 [ 10521 ]
        Resolution Fixed [ 1 ]

          People

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

            Dates

            • Created:
              Updated:
              Resolved: