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

        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
        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! =)
        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

          People

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

            Dates

            • Created:
              Updated:
              Resolved: