This commit is contained in:
parent
20d86c5b27
commit
b9b952ce8a
@ -2391,7 +2391,7 @@ class UnitOfWork implements PropertyChangedListener
|
|||||||
$this->orphanRemovals = array();
|
$this->orphanRemovals = array();
|
||||||
} else {
|
} else {
|
||||||
$this->clearIdentityMapForEntityName($entityName);
|
$this->clearIdentityMapForEntityName($entityName);
|
||||||
$this->clearEntityInsertions($entityName);
|
$this->clearEntityInsertionsForEntityName($entityName);
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($this->evm->hasListeners(Events::onClear)) {
|
if ($this->evm->hasListeners(Events::onClear)) {
|
||||||
@ -3472,9 +3472,9 @@ class UnitOfWork implements PropertyChangedListener
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @param $entityName
|
* @param string $entityName
|
||||||
*/
|
*/
|
||||||
private function clearEntityInsertions($entityName)
|
private function clearEntityInsertionsForEntityName($entityName)
|
||||||
{
|
{
|
||||||
foreach ($this->entityInsertions as $hash => $entity) {
|
foreach ($this->entityInsertions as $hash => $entity) {
|
||||||
if (get_class($entity) === $entityName) {
|
if (get_class($entity) === $entityName) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user