#6017 requesting clear('nonExistingEntityName')
now raises a MappingException
This commit is contained in:
parent
c1038096e0
commit
dffd765b1e
@ -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…
x
Reference in New Issue
Block a user