Skip to content

Instantly share code, notes, and snippets.

@icqparty
Last active February 28, 2016 17:42
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 icqparty/4051f4814c80793c1e0d to your computer and use it in GitHub Desktop.
Save icqparty/4051f4814c80793c1e0d to your computer and use it in GitHub Desktop.
Generate doctrine entity class in Zf2

icqparty@icqparty-K61IC ~ $ cd /vendore/bin/

  1. Create class Entities

icqparty@icqparty-K61IC ~ $ ./vendor/bin/doctrine-module orm:convert-mapping -f --from-database --namespace="Application\Entity\\" annotation \module//Application//src

  1. Create getters/setters for class Entities

icqparty@icqparty-K61IC ~ $ ./vendor/bin/doctrine-module orm:generate-entities --generate-annotations=true \module//Application//src

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment