Doctrine 2 - ORM
  1. Doctrine 2 - ORM
  2. DDC-1643

PersistentCollection should support clone

    Details

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

      Description

      I'm trying to clone a PersistentCollection and expect to get a stable snapshot. But the class does not implement __clone, thus both objects refer to the same internal ArrayCollection.

      I can't use takeSnapshot because I'm writing generic code that should work with any implementation of Traversable/ArrayAccess.

        Activity

          People

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

            Dates

            • Created:
              Updated:
              Resolved: