[DDC-1050] Change refresh of collection back
This commit is contained in:
parent
851f44a066
commit
112f9d1480
@ -1978,14 +1978,6 @@ class UnitOfWork implements PropertyChangedListener
|
|||||||
->loadOneToOneEntity($assoc, $entity, null));
|
->loadOneToOneEntity($assoc, $entity, null));
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
|
|
||||||
if (isset($hints[Query::HINT_REFRESH])) {
|
|
||||||
$pColl = $this->_class->reflFields[$field]->getValue($entity);
|
|
||||||
$pColl->setInitialized(false);
|
|
||||||
// no matter if dirty or non-dirty entities are already loaded, smoke them out!
|
|
||||||
// the beauty of it being, they are still in the identity map
|
|
||||||
$pColl->unwrap()->clear();
|
|
||||||
} else {
|
|
||||||
// Inject collection
|
// Inject collection
|
||||||
$pColl = new PersistentCollection($this->em, $targetClass, new ArrayCollection);
|
$pColl = new PersistentCollection($this->em, $targetClass, new ArrayCollection);
|
||||||
$pColl->setOwner($entity, $assoc);
|
$pColl->setOwner($entity, $assoc);
|
||||||
@ -1999,7 +1991,6 @@ class UnitOfWork implements PropertyChangedListener
|
|||||||
} else {
|
} else {
|
||||||
$pColl->setInitialized(false);
|
$pColl->setInitialized(false);
|
||||||
}
|
}
|
||||||
}
|
|
||||||
$this->originalEntityData[$oid][$field] = $pColl;
|
$this->originalEntityData[$oid][$field] = $pColl;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user