Skip to content

Instantly share code, notes, and snippets.

@ABM-Dan
Created March 11, 2016 16:54
Show Gist options
  • Save ABM-Dan/02bd5dbe73b0f8b4ce1b to your computer and use it in GitHub Desktop.
Save ABM-Dan/02bd5dbe73b0f8b4ce1b to your computer and use it in GitHub Desktop.
# php app/console doctrine:generate:entity --entity=xyz
Welcome to the Doctrine2 entity generator
This command helps you generate Doctrine2 entities.
First, you need to give the entity name you want to generate.
You must use the shortcut notation like AcmeBlogBundle:Post.
The Entity shortcut name [xyz]: AppBundle:xyz
Determine the format to use for the mapping information.
Configuration format (yml, xml, php, or annotation) [annotation]:
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment