diff --git a/lib/Doctrine/ORM/UnitOfWork.php b/lib/Doctrine/ORM/UnitOfWork.php index 1b7425d74..1547ab72a 100644 --- a/lib/Doctrine/ORM/UnitOfWork.php +++ b/lib/Doctrine/ORM/UnitOfWork.php @@ -2408,7 +2408,7 @@ class UnitOfWork implements PropertyChangedListener } } else { $this->clearIdentityMap($entityName); - $this->clearIdentityInsertions($entityName); + $this->clearEntityInsertions($entityName); } if ($this->evm->hasListeners(Events::onClear)) { @@ -3484,7 +3484,7 @@ class UnitOfWork implements PropertyChangedListener /** * @param $entityName */ - private function clearIdentityInsertions($entityName) + private function clearEntityInsertions($entityName) { foreach ($this->entityInsertions as $hash => $entity) { if (get_class($entity) === $entityName) {