#6017 requesting clear('nonExistingEntityName')
now raises a MappingException
This commit is contained in:
parent
c1038096e0
commit
dffd765b1e
1 changed files with 2 additions and 0 deletions
|
@ -2386,6 +2386,8 @@ class UnitOfWork implements PropertyChangedListener
|
|||
throw ORMInvalidArgumentException::invalidEntityName($entityName);
|
||||
}
|
||||
|
||||
$entityName = $this->em->getClassMetadata($entityName)->getName();
|
||||
|
||||
$this->clearIdentityMapForEntityName($entityName);
|
||||
$this->clearEntityInsertionsForEntityName($entityName);
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue