From b9b952ce8a5bb4abce188dbfeef62c827edcfcb9 Mon Sep 17 00:00:00 2001 From: Marco Pivetta Date: Mon, 6 Jun 2016 00:13:39 +0200 Subject: [PATCH] #5849 #5850 renamed `clearEntityInsertions` to `clearEntityInsertionsForEntityName`, for clarity --- lib/Doctrine/ORM/UnitOfWork.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/Doctrine/ORM/UnitOfWork.php b/lib/Doctrine/ORM/UnitOfWork.php index 0876740da..8efeb9e8f 100644 --- a/lib/Doctrine/ORM/UnitOfWork.php +++ b/lib/Doctrine/ORM/UnitOfWork.php @@ -2391,7 +2391,7 @@ class UnitOfWork implements PropertyChangedListener $this->orphanRemovals = array(); } else { $this->clearIdentityMapForEntityName($entityName); - $this->clearEntityInsertions($entityName); + $this->clearEntityInsertionsForEntityName($entityName); } 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) { if (get_class($entity) === $entityName) {