From 008601f2ead374a6be9bcbdeb300d110db0569a3 Mon Sep 17 00:00:00 2001 From: Benjamin Eberlei Date: Sun, 31 Oct 2010 07:23:58 +0100 Subject: [PATCH] DDC-758 - Respect notify change tracking. --- lib/Doctrine/ORM/UnitOfWork.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/Doctrine/ORM/UnitOfWork.php b/lib/Doctrine/ORM/UnitOfWork.php index 90541a890..1261a4cd5 100644 --- a/lib/Doctrine/ORM/UnitOfWork.php +++ b/lib/Doctrine/ORM/UnitOfWork.php @@ -1443,6 +1443,9 @@ class UnitOfWork implements PropertyChangedListener if (!$managedCol->isEmpty()) { $managedCol->unwrap()->clear(); $managedCol->setDirty(true); + if ($assoc2['isOwningSide'] && $assoc2['type'] == ClassMetadata::MANY_TO_MANY && $class->isChangeTrackingNotify()) { + $this->scheduleForDirtyCheck($managedCol); + } } } }