Remove runtime assertion
This commit is contained in:
parent
6f1107c4ee
commit
77d03ec745
@ -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…
x
Reference in New Issue
Block a user