mirror of
https://github.com/doctrine/orm.git
synced 2026-03-23 22:42:18 +01:00
DDC-3693: Notify change tracking policy breaks in the face of individual entity flushes #4536
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @doctrinebot on GitHub (Apr 15, 2015).
Originally assigned to: @beberlei on GitHub.
Jira issue originally created by user napsi:
The notify change tracking policy breaks, if other entities are individually flushed between change and flush on a given notify-based entity.
The culprit seems to be that UnitOfWork.commit() resets its scheduledForSynchronization and entityChangeSets arrays (name(s) has changed since 2.2.2) - even when the commit is for a single entity, and the arrays hold other scheduled entities/changes.
An example:
@ngandemer commented on GitHub (May 26, 2016):
Same issue :(