orm - Symfony Generating Specific Entities from the Database -


i have larger database , i'd create entities 4 tables. i'v been referencing symfony cookbook it's not quite getting me want be.

step 1 - import database

php app/console doctrine:mapping:import --force acmeblogbundle xml 

question here: can import specific tables? or tables start 'abc%'?) command this?

step 2 - convert import annotaction|yml|xml

php app/console doctrine:mapping:convert annotation ./src 

problem here: if delete imported files , leave specific orm.xml i'm interested in, still seem affect command. there cache clear or something??

step 3 -- create entities

php app/console doctrine:generate:entities acmeblogbundle 

i haven't had problems here.. however, getting point requires creating , deleting lot of unnecessary files real headache version control perspective.

i think steps should done in below arrange , need use --filter specific table:

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

basic authentication with http post params android -

vb.net - Virtual Keyboard commands -

How to get multiresult with multicondition in Sql Server -