Whenever I use Xdebug to debug variables I see alot of Proxies\__CG__\
classes instead of my real classes. Is there any way to disable these? I want to eager load everything instead of lazy loading.
These Proxy (entity) classes have every property null, only the id
is filled. This is not nice when using Xdebug to debug values from variables.
When I'm using the 'Evaluate Expression' tool, I can do $entity->getSomeEntity()->getName();
and it's not empty (lazy loading?). But without evaluating the expression, the value is null.
Tried to change Doctrine configuration auto_generate_proxy_classes
to 0
but weirdly this doesn't seem to change a thing.