Clear entityInsertions for specific entityName
This commit is contained in:
parent
90b7450747
commit
70603ee3db
@ -2401,6 +2401,13 @@ class UnitOfWork implements PropertyChangedListener
|
|||||||
$this->doDetach($entity, $visited, false);
|
$this->doDetach($entity, $visited, false);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
foreach ($this->entityInsertions as $hash => $entity) {
|
||||||
|
if (get_class($entity) != $entityName) {
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
unset($this->entityInsertions[$hash]);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($this->evm->hasListeners(Events::onClear)) {
|
if ($this->evm->hasListeners(Events::onClear)) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user