Reputation: 7289
i have generated some tables from entities using the :
php app/console generate:doctrine:entity
php app/console doctrine:schema:update --dump-sql
php app/console doctrine:schema:update --force
where can i find the generated schema file , describing all the table and fields that has been generated? What's the best procedure to remove entities and table ?
Upvotes: 0
Views: 8924
Reputation: 2576
php app/console doctrine:schema:update --dump-sql
dumps the sql generated and executed in the command prompt, there is are no files generated with this command (asfar as I know).
A Doctrine table in the database should be seen as a collection of objects, if you want the table removed, remove the entity that holds the data and use the command php app/console doctrine:schema:update --force
.
If you want to change fields in the table, change the fields in the entity class holding the data and again use php app/console doctrine:schema:update --force
Upvotes: 1