doctrine/doctrine2 — comment on commit e16803de618ef0b94b1fa0917bf0fefff23e07de
File:  line 0
By RapotOR:

@itze88
You can temporary move the fix into the `getReflectionClass ` to ensure a `ReflectionClass` is returned.

In https://github.com/doctrine/doctrine2/blob/master/lib/Doctrine/ORM/Mapping/ClassMetadataInfo.php#L841

public function getReflectionClass()
{
if (!($this->reflClass instanceof ReflectionClass)) {
return new ReflectionClass($this->name);
}
return $this->reflClass;
}