Skip to content


DDC-1072: Private property mapping can cause issues, suggest changing to protected #1665

doctrinebot opened this Issue · 1 comment

3 participants


Jira issue originally created by user kevbradwick:

The documentation recommends using private variables in entities. This can be problematic on entities with relations when using caching drivers as the proxy objects cannot access private variables and so the caching driver can throw notices like

...apcstore(): "_id" returned as member variable from _sleep() but
does not exist in ...

Making member variables protected resolves this issue when caching is enabled.

This information would be helpful on the documentation so others can be made aware of this issue. We spent a few days trying to debug the issue before understanding exactly what was going on.

@beberlei beberlei was assigned by doctrinebot
@zeroedin-bill zeroedin-bill removed the Invalid label
@beberlei beberlei was unassigned by zeroedin-bill
@zeroedin-bill zeroedin-bill self-assigned this
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.