1
0
mirror of synced 2025-01-18 22:41:43 +03:00

DDC-2704 - data should be merged only into initialized proxies

This commit is contained in:
Marco Pivetta 2015-01-20 15:48:58 +01:00
parent 91f4ed8b92
commit 8910c2c482

View File

@ -1868,6 +1868,10 @@ class UnitOfWork implements PropertyChangedListener
$visited[$oid] = $managedCopy; // mark visited
if (!($entity instanceof Proxy && ! $entity->__isInitialized())) {
if ($managedCopy instanceof Proxy && ! $managedCopy->__isInitialized()) {
$managedCopy->__load();
}
$this->mergeEntityStateIntoManagedCopy($entity, $managedCopy);
}