Doctrine 2 - ORM
  1. Doctrine 2 - ORM
  2. DDC-1545

Update on loaded association not detected upon flush()

    Details

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

      Description

      If an association is joined during fetching and then updated in-memory, the update is not detected during flushing. I made the following test cases:

      Association is joined:

      • change NULL → entity: does not work
      • change entity → NULL: works
      • change entity1 → entity2: does not work

      Assocation is not joined:

      • change NULL → entity: works
      • change entity → NULL: works
      • change entity1 → entity2: works

        Activity

        Bernhard Schussek created issue -
        Hide
        Bernhard Schussek added a comment -
        Show
        Bernhard Schussek added a comment - See here for the test case: https://github.com/bschussek/doctrine-orm/tree/DDC-1545
        Hide
        Guilherme Blanco added a comment -

        Increasing priority

        Show
        Guilherme Blanco added a comment - Increasing priority
        Guilherme Blanco made changes -
        Field Original Value New Value
        Priority Major [ 3 ] Critical [ 2 ]
        Guilherme Blanco made changes -
        Assignee Benjamin Eberlei [ beberlei ] Guilherme Blanco [ guilhermeblanco ]
        Guilherme Blanco made changes -
        Status Open [ 1 ] In Progress [ 3 ]
        Hide
        Guilherme Blanco added a comment -

        Issue fixed since this commit:

        https://github.com/doctrine/doctrine2/commit/a8478d5766e2cc4185612af680b7f6bcd83af61e

        Thanks a lot for the bug reporting. It was the second time someone reported me this issue and I could not reproduce! =)

        Show
        Guilherme Blanco added a comment - Issue fixed since this commit: https://github.com/doctrine/doctrine2/commit/a8478d5766e2cc4185612af680b7f6bcd83af61e Thanks a lot for the bug reporting. It was the second time someone reported me this issue and I could not reproduce! =)
        Guilherme Blanco made changes -
        Status In Progress [ 3 ] Resolved [ 5 ]
        Fix Version/s 2.2 [ 10157 ]
        Resolution Fixed [ 1 ]
        Hide
        Benjamin Eberlei added a comment -

        This issue is referenced in Github Pull-Request GH-229
        https://github.com/doctrine/doctrine2/pull/229

        Show
        Benjamin Eberlei added a comment - This issue is referenced in Github Pull-Request GH-229 https://github.com/doctrine/doctrine2/pull/229
        Hide
        Benjamin Eberlei added a comment -

        Related Pull Request was closed: https://github.com/doctrine/doctrine2/pull/229

        Show
        Benjamin Eberlei added a comment - Related Pull Request was closed: https://github.com/doctrine/doctrine2/pull/229
        Hide
        Benjamin Eberlei added a comment -

        Fixed properly now. Will be merged into 2.1.x

        Show
        Benjamin Eberlei added a comment - Fixed properly now. Will be merged into 2.1.x
        Hide
        Benjamin Eberlei added a comment -

        Update fix version, this was merged into 2.1.5

        Show
        Benjamin Eberlei added a comment - Update fix version, this was merged into 2.1.5
        Benjamin Eberlei made changes -
        Fix Version/s 2.1.5 [ 10170 ]
        Benjamin Eberlei made changes -
        Workflow jira [ 13279 ] jira-feedback [ 15154 ]
        Benjamin Eberlei made changes -
        Workflow jira-feedback [ 15154 ] jira-feedback2 [ 17018 ]
        Benjamin Eberlei made changes -
        Workflow jira-feedback2 [ 17018 ] jira-feedback3 [ 19271 ]

        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-1545, expand=changesets[0:20].revisions[0:29],reviews}, methodType=GET}] : Received status code 503 (Service Temporarily Unavailable)

          People

          • Assignee:
            Guilherme Blanco
            Reporter:
            Bernhard Schussek
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: