소스 검색

Merge pull request #141 from hason/doctrineversion

fixed AnnotationReader for Doctine Common 2.2.0-DEV and newest
Christophe Coevoet 13 년 전
부모
커밋
59f6297732
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      lib/Gedmo/Mapping/MappedEventSubscriber.php

+ 1 - 1
lib/Gedmo/Mapping/MappedEventSubscriber.php

@@ -194,7 +194,7 @@ abstract class MappedEventSubscriber implements EventSubscriber
     private function getDefaultAnnotationReader()
     {
         if (null === $this->defaultAnnotationReader) {
-            if (version_compare(\Doctrine\Common\Version::VERSION, '3.0.0-DEV', '>=')) {
+            if (version_compare(\Doctrine\Common\Version::VERSION, '2.2.0-DEV', '>=')) {
                 $reader = new \Doctrine\Common\Annotations\AnnotationReader();
                 \Doctrine\Common\Annotations\AnnotationRegistry::registerAutoloadNamespace(
                     'Gedmo\\Mapping\\Annotation',