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

        Aigars Gedroics created issue -
        Aigars Gedroics made changes -
        Field Original Value New Value
        Attachment DDC1509Test.php [ 11115 ]
        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.
        Benjamin Eberlei made changes -
        Priority Critical [ 2 ] Blocker [ 1 ]
        Hide
        Benjamin Eberlei added a comment -

        Fixed

        Show
        Benjamin Eberlei added a comment - Fixed
        Benjamin Eberlei made changes -
        Status Open [ 1 ] Resolved [ 5 ]
        Fix Version/s 2.1.4 [ 10165 ]
        Resolution Fixed [ 1 ]
        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.
        Benjamin Eberlei made changes -
        Workflow jira [ 13214 ] jira-feedback [ 15125 ]
        Benjamin Eberlei made changes -
        Workflow jira-feedback [ 15125 ] jira-feedback2 [ 16989 ]
        Benjamin Eberlei made changes -
        Workflow jira-feedback2 [ 16989 ] jira-feedback3 [ 19242 ]

        This list may be incomplete, as errors occurred whilst retrieving source from linked applications:

        • Request to http://www.doctrine-project.org/fisheye/ failed: Error in remote call to 'FishEye 0 (http://www.doctrine-project.org/fisheye/)' (http://www.doctrine-project.org/fisheye) [AbstractRestCommand{path='/rest-service-fe/search-v1/crossRepositoryQuery', params={query=DDC-1509, expand=changesets[0:20].revisions[0:29],reviews}, methodType=GET}] : Received status code 503 (Service Temporarily Unavailable)

          People

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

            Dates

            • Created:
              Updated:
              Resolved: