Doctrine 2 - ORM
  1. Doctrine 2 - ORM
  2. DDC-1509

Issue when merging entity with several associations to inherited classes

    Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Blocker Blocker
    • Resolution: Fixed
    • Affects Version/s: 2.1.3, Git Master
    • Fix Version/s: 2.1.4
    • Component/s: ORM
    • Security Level: All
    • Labels:
      None

      Description

      When merging entity with several associations to inherited classes update data gathering is broken after first inheritance processing because $entity variable is overwritten with another object.

      The problem is in the line

      https://github.com/doctrine/doctrine2/commit/08716d9f72996bab8c71a8cc8bda72d3925e8fb1#commitcomment-741698

      Test case will be attached shortly,

        Activity

        Hide
        Benjamin Eberlei added a comment -

        Raised to blocker.

        I will fix that tonight and release a new ORM 2.1.* branch.

        Show
        Benjamin Eberlei added a comment - Raised to blocker. I will fix that tonight and release a new ORM 2.1.* branch.
        Hide
        Benjamin Eberlei added a comment -

        Fixed

        Show
        Benjamin Eberlei added a comment - Fixed
        Hide
        Wandrille M added a comment - - edited

        Hey I have something similar with one-to-one, can you tell me which git commit this relates to so I can investigate?

        And i think it worked fine on 2.1.3 and not anymore

        Show
        Wandrille M added a comment - - edited Hey I have something similar with one-to-one, can you tell me which git commit this relates to so I can investigate? And i think it worked fine on 2.1.3 and not anymore
        Show
        Aigars Gedroics added a comment - It's https://github.com/doctrine/doctrine2/commit/80fae20f749f8db95156e333c430780a0717002f I guess.

          People

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

            Dates

            • Created:
              Updated:
              Resolved: