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

Popular posts from this blog

html - Outlook 2010 Anchor (url/address/link) -

javascript - Why does running this loop 9 times take 100x longer than running it 8 times? -

Getting gateway time-out Rails app with Nginx + Puma running on Digital Ocean -