Clear entityInsertions for specific entityName
This commit is contained in:
parent
90b7450747
commit
70603ee3db
1 changed files with 7 additions and 0 deletions
|
@ -2401,6 +2401,13 @@ class UnitOfWork implements PropertyChangedListener
|
|||
$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)) {
|
||||
|
|
Loading…
Add table
Reference in a new issue