Skip to content

Loading…

call wakeupReflection() after loadClassMetadata event has been dispatched #264

Closed
wants to merge 1 commit into from

2 participants

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Showing with 1 addition and 0 deletions.
  1. +1 −0 lib/Doctrine/ORM/Mapping/ClassMetadataFactory.php
View
1 lib/Doctrine/ORM/Mapping/ClassMetadataFactory.php
@@ -332,6 +332,7 @@ protected function loadMetadata($name)
if ($this->evm->hasListeners(Events::loadClassMetadata)) {
$eventArgs = new \Doctrine\ORM\Event\LoadClassMetadataEventArgs($class, $this->em);
$this->evm->dispatchEvent(Events::loadClassMetadata, $eventArgs);
+ $this->wakeupReflection($class, $this->getReflectionService());
}
$this->validateRuntimeMetadata($class, $parent);
Something went wrong with that request. Please try again.