[v6.13] Doctrine ORM Auto Generate Proxy classes strategy #141
llaville
started this conversation in
Show and tell
Replies: 1 comment
-
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
With previous versions, the generation of Proxy Classes by
doctrine/orm
was :APP_ENV=dev
)With v6.13.0 :
compatinfo-db.proxy_generate
setting) or env var (APP_PROXY_GENERATE
)Values may be either :
auto
(default), when proxy class file not found or changed since previous generationnever
, if you don't want proxiesalways
, generate a new proxy class for an entity (default and only choice for dev environement)For example :
With following command
We have built a fresh database and load contents with current distribution. Proxies classes were also generated before first use !
> Generating proxies ... line is displayed because we have used
APP_PROXY_GENERATE=always
setting (rather than defaultauto
value)Beta Was this translation helpful? Give feedback.
All reactions