Remove runtime assertion
This commit is contained in:
parent
6f1107c4ee
commit
77d03ec745
1 changed files with 5 additions and 3 deletions
|
@ -54,9 +54,11 @@ class LoadClassMetadataEventArgs extends BaseLoadClassMetadataEventArgs
|
|||
*/
|
||||
public function getEntityManager()
|
||||
{
|
||||
$em = $this->getObjectManager();
|
||||
assert($em instanceof EntityManager);
|
||||
return $em;
|
||||
/*
|
||||
We can safely assume our ObjectManager is also an EventManager due to
|
||||
our restrictions in the constructor.
|
||||
*/
|
||||
return $this->getObjectManager();
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Add table
Reference in a new issue