1
0
mirror of synced 2025-02-09 00:39:25 +03:00

#6017 requesting clear('nonExistingEntityName') now raises a MappingException

This commit is contained in:
Marco Pivetta 2016-11-27 18:17:47 +01:00
parent c1038096e0
commit dffd765b1e

View File

@ -2386,6 +2386,8 @@ class UnitOfWork implements PropertyChangedListener
throw ORMInvalidArgumentException::invalidEntityName($entityName);
}
$entityName = $this->em->getClassMetadata($entityName)->getName();
$this->clearIdentityMapForEntityName($entityName);
$this->clearEntityInsertionsForEntityName($entityName);
}