ソースを参照

[DoctrineBundle] Add warning about inheritance not supported in entity generation

Benjamin Eberlei 14 年 前
コミット
25ab8596da

+ 6 - 0
src/Symfony/Bundle/DoctrineBundle/Command/GenerateEntitiesDoctrineCommand.php

@@ -65,6 +65,12 @@ before to generate entities:
 
   <info>./app/console doctrine:generate:entities Blog/Entity --no-backup</info>
 
+<error>Important:</error> Even if you specified Inheritance options in your
+XML or YAML Mapping files the generator cannot generate the base and
+child classes for you correctly, because it doesn't know which
+class is supposed to extend which. You have to adjust the entity
+code manually for inheritance to work!
+
 EOT
         );
     }