partkeepr

fork of partkeepr
git clone https://git.e1e0.net/partkeepr.git
Log | Files | Refs | Submodules | README | LICENSE

commit c75b7c4ab7e74e1140f8db8587e739fd717a2117
parent b2a9c637208340daf63d1bf448664b394d2b7960
Author: Felicitus <felicitus@felicitus.org>
Date:   Mon, 16 Dec 2013 19:03:54 +0100

Use the FQDN annotation reader for migration

Diffstat:
Msrc/backend/PartKeepr/PartKeepr.php | 3++-
Msrc/backend/PartKeepr/Service/TypeReflector.php | 2+-
2 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/src/backend/PartKeepr/PartKeepr.php b/src/backend/PartKeepr/PartKeepr.php @@ -162,7 +162,8 @@ class PartKeepr { $config = new Configuration; $driverImpl = $config->newDefaultAnnotationDriver( - array(__DIR__) + array(__DIR__), + false ); $config->setMetadataDriverImpl($driverImpl); diff --git a/src/backend/PartKeepr/Service/TypeReflector.php b/src/backend/PartKeepr/Service/TypeReflector.php @@ -22,7 +22,7 @@ class TypeReflector { $this->reflClass = new \ReflectionClass($className); $this->className = $className; - $this->reader = new \Doctrine\Common\Annotations\SimpleAnnotationReader(); + $this->reader = new \Doctrine\Common\Annotations\AnnotationReader(); $this->reader->addNamespace('Doctrine\ORM\Mapping'); $this->reader->addNamespace('PartKeepr\\Service\\Annotations');