浏览代码

fixed AnnotationReader for Doctine Common 2.2.0-DEV and newest

Martin Hasoň 13 年之前
父节点
当前提交
35d9a247e7
共有 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',