1
0
mirror of synced 2025-01-18 06:21:40 +03:00

Fix DDC-1690

Added the lines suggested by the original reporter.
This commit is contained in:
Patrick Schwisow 2012-12-20 15:31:46 -06:00
parent 4bbfe0ce8a
commit 5627993827

View File

@ -2573,6 +2573,9 @@ 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);
}
$this->entityStates[$newValueOid] = self::STATE_MANAGED;
// make sure that when an proxy is then finally loaded, $this->originalEntityData is set also!
break;