1
0
mirror of synced 2024-12-05 03:06:05 +03:00

Add note about changed behaviour

This commit is contained in:
flack 2013-11-17 12:06:47 +01:00
parent 88ae5883f3
commit 3d12920cd4

View File

@ -1,3 +1,15 @@
# Upgrade to 2.5
## Updates on entities scheduled for deletion are no longer processed
In Doctrine 2.4, if you modified properties of an entity scheduled for deletion, UnitOfWork would
produce an UPDATE statement to be executed right before the DELETE statement. The entity in question
was therefore present in ``UnitOfWork#entityUpdates``, which means that ``preUpdate`` and ``postUpdate``
listeners were (quite pointlessly) called. In ``preFlush`` listeners, it used to be possible to undo
the scheduled deletion for updated entities (by calling ``persist()`` if the entity was found in both
``entityUpdates`` and ``entityDeletions``). This does not work any longer, because the entire changeset
calculation logic is optimized away.
# Upgrade to 2.4
## BC BREAK: Compatibility Bugfix in PersistentCollection#matching()