Doctrine 2 - ORM
  1. Doctrine 2 - ORM
  2. DDC-875

Merge can sometimes add the same entity twice into a collection

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Cannot Reproduce
    • Affects Version/s: 2.0-BETA4
    • Fix Version/s: None
    • Component/s: ORM
    • Security Level: All
    • Labels:
      None

      Description

      When merging some cascade merge object-graphs, the same entity in a ManyToMany association can be put into a collection twice during doMerge.

      The attached patch should stop this from happening.

      1. multipleaddmerge.diff
        1 kB
        Dave Keen
      2. multipleaddmerge2.diff
        1 kB
        Dave Keen

        Activity

        Dave Keen created issue -
        Dave Keen made changes -
        Field Original Value New Value
        Attachment multipleaddmerge2.diff [ 10897 ]
        Alexander made changes -
        Status Open [ 1 ] Closed [ 6 ]
        Resolution Cannot Reproduce [ 5 ]
        Benjamin Eberlei made changes -
        Workflow jira [ 12094 ] jira-feedback [ 15660 ]
        Benjamin Eberlei made changes -
        Workflow jira-feedback [ 15660 ] jira-feedback2 [ 17524 ]
        Benjamin Eberlei made changes -
        Workflow jira-feedback2 [ 17524 ] jira-feedback3 [ 19781 ]

          People

          • Assignee:
            Roman S. Borschel
            Reporter:
            Dave Keen
          • Votes:
            1 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: