From 53c5824a6bcc1bb5af63eddeae56ea74f8ee1b22 Mon Sep 17 00:00:00 2001 From: Marco Pivetta Date: Sun, 27 Nov 2016 18:35:05 +0100 Subject: [PATCH] #6017 removed `clear($entityName)` parameter validity checks The `UnitOfWork` is advanced stuff: don't touch if you don't know what you are doing. --- lib/Doctrine/ORM/UnitOfWork.php | 6 ------ 1 file changed, 6 deletions(-) diff --git a/lib/Doctrine/ORM/UnitOfWork.php b/lib/Doctrine/ORM/UnitOfWork.php index 07cf68568..368fdfd63 100644 --- a/lib/Doctrine/ORM/UnitOfWork.php +++ b/lib/Doctrine/ORM/UnitOfWork.php @@ -2382,12 +2382,6 @@ class UnitOfWork implements PropertyChangedListener $this->visitedCollections = $this->orphanRemovals = array(); } else { - if (! is_string($entityName)) { - throw ORMInvalidArgumentException::invalidEntityName($entityName); - } - - $entityName = $this->em->getClassMetadata($entityName)->getName(); - $this->clearIdentityMapForEntityName($entityName); $this->clearEntityInsertionsForEntityName($entityName); }