php - Doctrine cascade/fetch type on generate -


if generate entities such:

php app/console generate:doctrine:entity 

you 80 percent of work done. able set fetch type @ level. if cant, can trickery after ive generated it, because want set of manytoones fetch lazy because end doing.

it in head:

php app/console generate:doctrine:entity --fetch-type:user:roles=eager --cascade:user:roles:persist 

this understanding of whats possible: http://symfony.com/doc/current/bundles/sensiogeneratorbundle/commands/generate_doctrine_entity.html

the end game dont want alter entity ever after generation, can regenerate should database change , not missing logic. id sort of tools or approach close gap as possible.


Comments

Popular posts from this blog

php - Permission denied. Laravel linux server -

google bigquery - Delta between query execution time and Java query call to finish -

python - Pandas two dataframes multiplication? -