How to generate entities from database schema using doctrine-orm-module and zf2

前端 未结 3 501
情深已故
情深已故 2021-01-31 19:15

I am using \"doctrine/doctrine-orm-module\": \"0.7.0\" with ZF2.

Once I create Entities I usually run following commands to sync and generate database automatically acco

3条回答
  •  离开以前
    2021-01-31 20:02

    Try just it

    doctrine orm:convert-mapping -f --from-database annotation entities/
    
    doctrine orm:generate-entities --generate-annotations="true" entities/
    

    http://wildlyinaccurate.com/useful-doctrine-2-console-commands/

提交回复
热议问题