From a25101add1d68542ae4f708d8cf3b5d1c5c4a11f Mon Sep 17 00:00:00 2001 From: "Roman S. Borschel" Date: Fri, 30 Jul 2010 17:18:25 +0200 Subject: [PATCH] Fixed merging with NOTIFY policy. --- lib/Doctrine/ORM/UnitOfWork.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/lib/Doctrine/ORM/UnitOfWork.php b/lib/Doctrine/ORM/UnitOfWork.php index 65142e84c..50852ac36 100644 --- a/lib/Doctrine/ORM/UnitOfWork.php +++ b/lib/Doctrine/ORM/UnitOfWork.php @@ -1444,10 +1444,11 @@ class UnitOfWork implements PropertyChangedListener } } if ($class->isChangeTrackingNotify()) { - //TODO: put changed fields in changeset...? + // Just treat all properties as changed, there is no other choice. + $this->propertyChanged($managedCopy, $name, null, $prop->getValue($managedCopy)); } } - if ( ! $class->isChangeTrackingDeferredImplicit()) { + if ($class->isChangeTrackingDeferredExplicit()) { $this->scheduleForDirtyCheck($entity); } }