Skip to content

Instantly share code, notes, and snippets.

@adrianpietka
Last active March 12, 2017 20:30
Show Gist options
  • Select an option

  • Save adrianpietka/c1c7c44468070afe6238e6bdc4783e60 to your computer and use it in GitHub Desktop.

Select an option

Save adrianpietka/c1c7c44468070afe6238e6bdc4783e60 to your computer and use it in GitHub Desktop.
Symfony 3.x Doctrine Commands
# 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