Reputation: 420
How to generate a database from Symfony's existing code through command line ?
we have an existing code with us we need to do a type of reverse engineering to generate the database tables related to that code we have tried commands like:
php app/console doctrine:schema:update --force
We are new to Symfony....!
Upvotes: 1
Views: 146
Reputation: 1010
app/console doctrine:database:create
then followed by app/console doctrine:schema:update --force
Upvotes: 3
Reputation: 27
php app/console doctrine:schema:update --force is the right one also you can dump sql queries with --dump-sql
Upvotes: 1