DDC-1193 - Fix previous commit.
This commit is contained in:
parent
acaf08d4b7
commit
bda4165bf8
@ -1678,10 +1678,6 @@ class UnitOfWork implements PropertyChangedListener
|
|||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($entity instanceof Proxy && !$entity->__isInitialized__) {
|
|
||||||
$entity->__load();
|
|
||||||
}
|
|
||||||
|
|
||||||
$relatedEntities = $class->reflFields[$assoc['fieldName']]->getValue($entity);
|
$relatedEntities = $class->reflFields[$assoc['fieldName']]->getValue($entity);
|
||||||
if (($relatedEntities instanceof Collection || is_array($relatedEntities))) {
|
if (($relatedEntities instanceof Collection || is_array($relatedEntities))) {
|
||||||
if ($relatedEntities instanceof PersistentCollection) {
|
if ($relatedEntities instanceof PersistentCollection) {
|
||||||
@ -1711,7 +1707,7 @@ class UnitOfWork implements PropertyChangedListener
|
|||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($entity instanceof Proxy) {
|
if ($entity instanceof Proxy && !$entity->__isInitialized__) {
|
||||||
$entity->__load();
|
$entity->__load();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user