I am stepping through the "Database and doctrine" section (http://
symfony.com/doc/current/book/doctrine.html) and following the example
product. I am using the latest release listed on the main symfony
download page.

When I run the following command as listed on the site:

php app/console doctrine:generate:entities Acme/StoreBundle/Entity/
Product

I get the below issue:

Fatal error: Cannot redeclare class Acme\StoreBundle\Entity\Product
in /var/www/symfony/src/Acme/StoreBundle/Entity/Product.php on line 11

Line 11 is the class Product declaration. (class Product {})

The documentation then states:

This command makes sure that all of the getters and setters are
generated for the Product class. This is a safe command - you can run
it over and over again: it only generates getters and setters that
don't exist (i.e. it doesn't replace your existing methods).

Any command thereafter throws the same error on the same line:

php app/console doctrine:generate:entities AcmeStoreBundle
php app/console doctrine:generate:entities Acme
php app/console doctrine:schema:update --force


Does anyone have any info on this?

-- 
If you want to report a vulnerability issue on symfony, please send it to 
security at symfony-project.com

You received this message because you are subscribed to the Google
Groups "symfony developers" group.
To post to this group, send email to symfony-devs@googlegroups.com
To unsubscribe from this group, send email to
symfony-devs+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/symfony-devs?hl=en

Reply via email to