Last active
February 3, 2018 18:01
-
-
Save nixon1333/fbb680b43c82a9a488f348b446d39e45 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