In a project, use commands to generate different corresponding entities under different bundles according to the database. database: test table: account,product
There are two bundles in the symfony project
DemoAccountBundle DemoProductBUndle
Use the command directly without considering the corresponding relationship.
php app/console doctrine:mapping:import DemoAccountBundle yml
You can generate everything but it will be under DemoAccountBundle
Is there a way to select generated entities?
The structure is as follows
DemoAccountBundle Entity:Account.php
DemoProductBundle Entity:Product.php
Continuing research, if anyone has implemented it, please let us know.
You've do this way,
Then And finall Like this doctrine will load only the entity you need. Just be carefull on the filter you must use the CamelCase.