Repository navigation
autogenerate_proxy_classes and proxies understanding #10386
Closed
FrancescJR
started this conversation in
General
Replies: 1 comment 1 reply
|
Three years later… Every entity doesn’t require a proxy: e.g. one which no relationship has as a target. If proxies are runtime-generated then it wouldn’t ever happen for such an entity. But the code generating proxies if |
1 reply
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.
Uh oh!
There was an error while loading. Please reload this page.
Hello,
I just would like to understand more about the autogenerate_proxy_classes configuration. Maybe I don't need to understand it all, but just understand a specific behavior I am having that contradicts my understanding, hence the need for help.
So what I understand:
I am not sure if I have a configuration with this
auto_generate_proxy_classes: trueif that means it's automatically, I'd say so, right?Now, what I don't understand is if proxy classes are eventually always used (independently if the config option) or just in some cases. I'd say that they are eventually always needed, despite on how they're generated, right?
But the behavior I'm having is:
if
auto_generate_proxy_classes: trueeverything works fine (I can save entites to database normally)if
auto_generate_proxy_classes: falsethen I get this error: #7598 (yes the entity is "final")But I'd say I should get the error always, maybe sooner or later, but I'd get the error too if I have a final class even though I have this
auto_generate_proxy_classes: true, right?Can somebody explain me the why behind all of this?
All reactions