1
0
mirror of synced 2025-02-02 13:31:45 +03:00

#6017 removed clear($entityName) parameter validity checks

The `UnitOfWork` is advanced stuff: don't touch if you don't know what you are doing.
This commit is contained in:
Marco Pivetta 2016-11-27 18:35:05 +01:00
parent 1d7397caf0
commit 53c5824a6b

View File

@ -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);
}