Skip to content

Instantly share code, notes, and snippets.

@zburgermeiszter
Created September 25, 2014 14:09
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save zburgermeiszter/b7617445d11b001fa2af to your computer and use it in GitHub Desktop.
Save zburgermeiszter/b7617445d11b001fa2af to your computer and use it in GitHub Desktop.
Rebuild all doctrine entities
To rebuild entity "configs"
php app/console doctrine:mapping:import --force AcmeBlogBundle yml
To convert them to PHP annotation format:
php app/console doctrine:mapping:convert annotation ./src
To regenerate getters and setters:
php app/console doctrine:generate:entities AcmeBlogBundle
http://symfony.com/doc/2.3/cookbook/doctrine/reverse_engineering.html
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment