Permalink
Browse files

resolved proxy when reading geo query annotation

  • Loading branch information...
1 parent d1fb9be commit 8b11e10ae1a9f3435647730acb5f6ec55817c00d @dustin10 committed Dec 7, 2011
Showing with 2 additions and 1 deletion.
  1. +2 −1 Driver/AnnotationDriver.php
@@ -77,7 +77,7 @@ public function readGeoQueryAnnotation($obj)
throw new \InvalidArgumentException();
}
- $refClass = new \ReflectionClass($obj);
+ $refClass = $this->resolveProxy($obj);
foreach ($refClass->getMethods() as $method) {
$annot = $this->reader->getMethodAnnotation($method, $this->geoQueryClass);
@@ -106,3 +106,4 @@ protected function resolveProxy($obj)
return new \ReflectionClass($obj);
}
}
+

0 comments on commit 8b11e10

Please sign in to comment.