1
0
mirror of synced 2025-02-20 22:23:14 +03:00

Fix bug in ChangeTrackingNotify code

This commit is contained in:
Benjamin Eberlei 2011-06-18 23:06:07 +02:00
parent fa7574b2ba
commit decd1482de

View File

@ -455,7 +455,7 @@ class UnitOfWork implements PropertyChangedListener
// and we have a copy of the original data
$originalData = $this->originalEntityData[$oid];
$isChangeTrackingNotify = $class->isChangeTrackingNotify();
$changeSet = $isChangeTrackingNotify ? $this->entityChangeSets[$oid] : array();
$changeSet = ($isChangeTrackingNotify && isset($this->entityChangeSets[$oid])) ? $this->entityChangeSets[$oid] : array();
foreach ($actualData as $propName => $actualValue) {
$orgValue = isset($originalData[$propName]) ? $originalData[$propName] : null;