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

        Bernhard Schussek created issue -
        Benjamin Eberlei made changes -
        Field Original Value New Value
        Project Doctrine Common [ 10043 ] Doctrine 2 - ORM [ 10032 ]
        Key DCOM-95 DDC-1643
        Affects Version/s 2.2 [ 10157 ]
        Affects Version/s 2.2 [ 10152 ]
        Security All [ 10000 ]
        Component/s ORM [ 10012 ]
        Component/s Collections [ 10052 ]
        Benjamin Eberlei made changes -
        Status Open [ 1 ] Resolved [ 5 ]
        Fix Version/s 2.1.7 [ 10198 ]
        Fix Version/s 2.2.1 [ 10194 ]
        Resolution Fixed [ 1 ]
        Benjamin Eberlei made changes -
        Workflow jira [ 13429 ] jira-feedback [ 15224 ]
        Benjamin Eberlei made changes -
        Workflow jira-feedback [ 15224 ] jira-feedback2 [ 17088 ]
        Benjamin Eberlei made changes -
        Workflow jira-feedback2 [ 17088 ] jira-feedback3 [ 19341 ]

          People

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

            Dates

            • Created:
              Updated:
              Resolved: