Last active
March 12, 2017 20:30
-
-
Save adrianpietka/c1c7c44468070afe6238e6bdc4783e60 to your computer and use it in GitHub Desktop.
Symfony 3.x Doctrine Commands
This file contains hidden or 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
| # database managment | |
| $: php bin/console doctrine:database:drop --force | |
| $: php bin/console doctrine:database:create | |
| # generate entities | |
| $: php bin/console doctrine:generate:entity | |
| $: php bin/console doctrine:generate:entities AppBundle | |
| $: php bin/console doctrine:generate:entities AppBundle/Entity/Product | |
| # schema update | |
| $: php bin/console doctrine:schema:validate | |
| $: php bin/console doctrine:schema:update --force | |
| # fixtures | |
| $: php bin/console doctrine:fixtures:load --append | |
| $: php bin/console doctrine:fixtures:load |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment