DDC-1545: Update on loaded association not detected upon flush() #1939

Closed
opened 2026-01-22 13:32:32 +01:00 by admin · 8 comments
Owner

Originally created by @doctrinebot on GitHub (Dec 18, 2011).

Originally assigned to: @guilhermeblanco on GitHub.

Jira issue originally created by user bschussek:

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
Originally created by @doctrinebot on GitHub (Dec 18, 2011). Originally assigned to: @guilhermeblanco on GitHub. Jira issue originally created by user bschussek: 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
admin added the Bug label 2026-01-22 13:32:32 +01:00
admin closed this issue 2026-01-22 13:32:34 +01:00
Author
Owner

@doctrinebot commented on GitHub (Dec 18, 2011):

Comment created by bschussek:

See here for the test case: https://github.com/bschussek/doctrine-orm/tree/DDC-1545

@doctrinebot commented on GitHub (Dec 18, 2011): Comment created by bschussek: See here for the test case: https://github.com/bschussek/doctrine-orm/tree/[DDC-1545](http://www.doctrine-project.org/jira/browse/DDC-1545)
Author
Owner

@doctrinebot commented on GitHub (Dec 19, 2011):

Comment created by @guilhermeblanco:

Increasing priority

@doctrinebot commented on GitHub (Dec 19, 2011): Comment created by @guilhermeblanco: Increasing priority
Author
Owner

@doctrinebot commented on GitHub (Dec 19, 2011):

Comment created by @guilhermeblanco:

Issue fixed since this commit:

a8478d5766

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

@doctrinebot commented on GitHub (Dec 19, 2011): Comment created by @guilhermeblanco: 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! =)
Author
Owner

@doctrinebot commented on GitHub (Dec 19, 2011):

Issue was closed with resolution "Fixed"

@doctrinebot commented on GitHub (Dec 19, 2011): Issue was closed with resolution "Fixed"
Author
Owner

@doctrinebot commented on GitHub (Dec 19, 2011):

Comment created by @beberlei:

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

@doctrinebot commented on GitHub (Dec 19, 2011): Comment created by @beberlei: This issue is referenced in Github Pull-Request GH-229 https://github.com/doctrine/doctrine2/pull/229
Author
Owner

@doctrinebot commented on GitHub (Dec 19, 2011):

Comment created by @beberlei:

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

@doctrinebot commented on GitHub (Dec 19, 2011): Comment created by @beberlei: Related Pull Request was closed: https://github.com/doctrine/doctrine2/pull/229
Author
Owner

@doctrinebot commented on GitHub (Dec 19, 2011):

Comment created by @beberlei:

Fixed properly now. Will be merged into 2.1.x

@doctrinebot commented on GitHub (Dec 19, 2011): Comment created by @beberlei: Fixed properly now. Will be merged into 2.1.x
Author
Owner

@doctrinebot commented on GitHub (Dec 19, 2011):

Comment created by @beberlei:

Update fix version, this was merged into 2.1.5

@doctrinebot commented on GitHub (Dec 19, 2011): Comment created by @beberlei: Update fix version, this was merged into 2.1.5
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: doctrine/archived-orm#1939