瀏覽代碼

[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 年之前
父節點
當前提交
ab4352c5cd
共有 1 個文件被更改,包括 0 次插入4 次删除
  1. 0 4
      src/Symfony/Bundle/DoctrineBundle/Command/DoctrineCommand.php

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

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