Remove runtime assertion
This commit is contained in:
parent
6f1107c4ee
commit
77d03ec745
@ -54,9 +54,11 @@ class LoadClassMetadataEventArgs extends BaseLoadClassMetadataEventArgs
|
|||||||
*/
|
*/
|
||||||
public function getEntityManager()
|
public function getEntityManager()
|
||||||
{
|
{
|
||||||
$em = $this->getObjectManager();
|
/*
|
||||||
assert($em instanceof EntityManager);
|
We can safely assume our ObjectManager is also an EventManager due to
|
||||||
return $em;
|
our restrictions in the constructor.
|
||||||
|
*/
|
||||||
|
return $this->getObjectManager();
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
x
Reference in New Issue
Block a user