php - Doctrine not importing particular tables -
i working on symfony2 , trying create entities database .my problem have 12 tables in database 10 entities getting generated .
those 2 tables not getting imported when trying import them individually.
i have tried commands mentioned in thread
but when run command
php app/console doctrine:mapping:import appmybundle \     metadata_format --filter="yourtablename" it says
   database not have mapping information. sorry new symfony , doctrine .please suggest me should do?
at first, try convert annotation --from-database argument, described in this answer:
step1
php app/console doctrine:mapping:convert annotation /src/app/mybundle/resources/config/doctrine --from-database --filter="table_name"step2 can apply importing
php app/console doctrine:mapping:import appmybundle annotation --filter="table_name"step3
php app/console doctrine:generate:entities appmybundle --no-backup
Comments
Post a Comment