DDC-2704 - data should be merged only into initialized proxies
This commit is contained in:
parent
91f4ed8b92
commit
8910c2c482
@ -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);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user