I have configured doctrine ORM in my ZF2 project and create doctrine entity of whole database. Now, I have added one more table named dashboard_group
in database. How can I create Doctrine entity for only this table.
I don't want to replace other created entities.
Use –filter
option in your command :
./vendor//bin/doctrine-module orm:convert-mapping --namespace="YourModule\\Entity\\" --force --from-database --filter="dashboard_group" annotation ./module/MonModule/src/
And then to add setter/getter into the generated entity :
./vendor/bin/doctrine-module orm:generate-entities ./module/YourModule/src/ --generate-annotations=true --filter="dashboard_group"