Clear entityInsertions for specific entityName
This commit is contained in:
parent
dfbc6bbea3
commit
cd746beae2
@ -2418,6 +2418,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…
x
Reference in New Issue
Block a user