Reputation: 7048
I created entities from my database using the following command
#1 php app/console doctrine:mapping:convert xml ./src/Acme/DemoBundle/Resources/config/ doctrine/metadata/orm --from-database --force
#2 php app/console doctrine:mapping:import AcmeDemoBundle yml
#3 php app/console doctrine:generate:entities AcmeDemoBundle
After that I may alter some tables in the database.
What steps should I follow to reflect the changes in the symfony-framework?
Upvotes: 0
Views: 6035
Reputation: 3240
You should not alter your database outside of Symfony2. Now you should update by hand YML configuration files and run #3 command again or overwrite your entities from database schema directly
Upvotes: 4