diff --git a/src/Mapping/Driver/AbstractAnnotationDriver.php b/src/Mapping/Driver/AbstractAnnotationDriver.php index c8cc1af57e..a768e8137c 100644 --- a/src/Mapping/Driver/AbstractAnnotationDriver.php +++ b/src/Mapping/Driver/AbstractAnnotationDriver.php @@ -82,15 +82,7 @@ public function setOriginalDriver($driver) */ public function getMetaReflectionClass($meta) { - $class = $meta->getReflectionClass(); - if (!$class) { - // based on recent doctrine 2.3.0-DEV maybe will be fixed in some way - // this happens when running annotation driver in combination with - // static reflection services. This is not the nicest fix - $class = new \ReflectionClass($meta->getName()); - } - - return $class; + return $meta->getReflectionClass(); } /**