|
@@ -98,8 +98,15 @@ class Annotation implements AnnotationDriverInterface
|
|
/**
|
|
/**
|
|
* {@inheritDoc}
|
|
* {@inheritDoc}
|
|
*/
|
|
*/
|
|
- public function readExtendedMetadata($meta, array &$config) {
|
|
|
|
|
|
+ public function readExtendedMetadata($meta, array &$config)
|
|
|
|
+ {
|
|
$class = $meta->getReflectionClass();
|
|
$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->name);
|
|
|
|
+ }
|
|
// class annotations
|
|
// class annotations
|
|
if ($annot = $this->reader->getClassAnnotation($class, self::TREE)) {
|
|
if ($annot = $this->reader->getClassAnnotation($class, self::TREE)) {
|
|
if (!in_array($annot->type, $this->strategies)) {
|
|
if (!in_array($annot->type, $this->strategies)) {
|