Symfony2 Problem building a second schema Fatal error: Cannot redeclare
I'm building a bundle in Symfony2 and i've succesfully created a schema for my Test1Bundle but i'm having problem to create a second one under a different directory
src\MyBundle\Test1Bundle\..
src\MyBundle\Test2Bundle\..
my database and tables were created after executing commands:
php app/console doctrine:database:create
php app/console doctrine:schema:create
now when i run "php app/console doctrine:schema:create" command again I'开发者_高级运维m having a fatal error. Still trying to execute under Test1Bundle path.
PHP Fatal error: Cannot redeclare MyBundle\Test1\Entity\Test1::$id in E:\xampp\htdocs\symfony\src\MyBundle\Test1\Entity\Test1.php on line 21
also tried
php app/console doctrine:generate:entities MyBundle/Test2Bundle/Entity
and got the same fatal error still trying to execute under Test1Bundle path.
精彩评论