1
0
mirror of synced 2025-01-30 20:11:49 +03:00

DDC-1193 - Fix previous commit.

This commit is contained in:
Benjamin Eberlei 2011-06-05 10:02:57 +02:00
parent acaf08d4b7
commit bda4165bf8
2 changed files with 3 additions and 7 deletions

View File

@ -1678,10 +1678,6 @@ class UnitOfWork implements PropertyChangedListener
continue;
}
if ($entity instanceof Proxy && !$entity->__isInitialized__) {
$entity->__load();
}
$relatedEntities = $class->reflFields[$assoc['fieldName']]->getValue($entity);
if (($relatedEntities instanceof Collection || is_array($relatedEntities))) {
if ($relatedEntities instanceof PersistentCollection) {
@ -1711,7 +1707,7 @@ class UnitOfWork implements PropertyChangedListener
continue;
}
if ($entity instanceof Proxy) {
if ($entity instanceof Proxy && !$entity->__isInitialized__) {
$entity->__load();
}