Kaynağa Gözat

[DoctrineBundle] removed the annotation prefix in doctrine:mapping:import (this will work as soon as the EntityGenerator has been updated in Doctrine)

Fabien Potencier 14 yıl önce
ebeveyn
işleme
ab4352c5cd

+ 0 - 4
src/Symfony/Bundle/DoctrineBundle/Command/DoctrineCommand.php

@@ -30,10 +30,6 @@ abstract class DoctrineCommand extends Command
     protected function getEntityGenerator()
     {
         $entityGenerator = new EntityGenerator();
-
-        if (version_compare(DoctrineVersion::VERSION, "2.0.2-DEV") >= 0) {
-            $entityGenerator->setAnnotationPrefix("orm:");
-        }
         $entityGenerator->setGenerateAnnotations(false);
         $entityGenerator->setGenerateStubMethods(true);
         $entityGenerator->setRegenerateEntityIfExists(false);