From 25ab8596da7d4020428e7ad91be0dc82b7356f5f Mon Sep 17 00:00:00 2001 From: Benjamin Eberlei Date: Tue, 12 Jul 2011 23:35:07 +0200 Subject: [PATCH] [DoctrineBundle] Add warning about inheritance not supported in entity generation --- .../Command/GenerateEntitiesDoctrineCommand.php | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/Symfony/Bundle/DoctrineBundle/Command/GenerateEntitiesDoctrineCommand.php b/src/Symfony/Bundle/DoctrineBundle/Command/GenerateEntitiesDoctrineCommand.php index e2dfc20384..aab2c7ded6 100644 --- a/src/Symfony/Bundle/DoctrineBundle/Command/GenerateEntitiesDoctrineCommand.php +++ b/src/Symfony/Bundle/DoctrineBundle/Command/GenerateEntitiesDoctrineCommand.php @@ -65,6 +65,12 @@ before to generate entities: ./app/console doctrine:generate:entities Blog/Entity --no-backup +Important: 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 ); }