-
Notifications
You must be signed in to change notification settings - Fork 232
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Use LazyGhostObject for proxy objects #877
Conversation
77c57f1
to
6d1cacd
Compare
LGTM in general. Do we want to give people the opportunity to disable lazy ghost objects in the config (and default to |
3a16ec8
to
cd20e33
Compare
I added a configuration that is true when the feature is available, and reverted the need to update minimal version of |
6ade0ee
to
adba204
Compare
@@ -39,6 +40,13 @@ public function getConfigTreeBuilder(): TreeBuilder | |||
->children() | |||
->scalarNode('proxy_namespace')->defaultValue('MongoDBODMProxies')->end() | |||
->scalarNode('proxy_dir')->defaultValue('%kernel.cache_dir%/doctrine/odm/mongodb/Proxies')->end() | |||
->booleanNode('enable_lazy_ghost_objects') |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Requires the release of
doctrine/mongodb-odm: 2.10
with LazyGhostObject support provided bysymfony/var-exporter
:Enable
UseLazyGhostObject
configuration and fix proxy interface after the default configuration is reset to Proxy Manager by doctrine/mongodb-odm#2720 for compatibility with older versions of the bundle.New configuration setting:
enable_lazy_ghost_objects
which is true by default when the feature is available.