diff --git a/lib/Doctrine/ORM/UnitOfWork.php b/lib/Doctrine/ORM/UnitOfWork.php index e6ab95321..0795c3ad0 100644 --- a/lib/Doctrine/ORM/UnitOfWork.php +++ b/lib/Doctrine/ORM/UnitOfWork.php @@ -2573,6 +2573,7 @@ class UnitOfWork implements PropertyChangedListener $newValueOid = spl_object_hash($newValue); $this->entityIdentifiers[$newValueOid] = $associatedId; $this->identityMap[$targetClass->rootEntityName][$relatedIdHash] = $newValue; + if ($newValue instanceof NotifyPropertyChanged) { $newValue->addPropertyChangedListener($this); }