-
-
Save hrshadhin/e82e5c3aface96fa64bed1337727d4c4 to your computer and use it in GitHub Desktop.
update database from entity
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#symfony -> database | |
php app/console doctrine:schema:update --force | |
#database -> symfony | |
php app/console doctrine:mapping:import --force ApplicationBundle xml && php app/console doctrine:mapping:convert --force annotation ./src && php app/console doctrine:generate:entities ApplicationBundle | |
# db to doctrine xml | |
php app/console doctrine:mapping:import ApplicationBundle xml --filter="InvProducts" | |
#xml to doctrine entity | |
php app/console doctrine:generate:entities ApplicationBundle |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment