diff --git a/lib/Doctrine/ORM/Mapping/Driver/AnnotationDriver.php b/lib/Doctrine/ORM/Mapping/Driver/AnnotationDriver.php index c8b53fe94..f11331ffa 100644 --- a/lib/Doctrine/ORM/Mapping/Driver/AnnotationDriver.php +++ b/lib/Doctrine/ORM/Mapping/Driver/AnnotationDriver.php @@ -137,7 +137,7 @@ class AnnotationDriver implements Driver if (!$class) { // this happens when running annotation driver in combination with // static reflection services. This is not the nicest fix - $class = new \ReflectionClass($class->name); + $class = new \ReflectionClass($metadata->name); } $classAnnotations = $this->_reader->getClassAnnotations($class);