diff --git a/DependencyInjection/Configuration.php b/DependencyInjection/Configuration.php index b041a5dc..2e154b6d 100644 --- a/DependencyInjection/Configuration.php +++ b/DependencyInjection/Configuration.php @@ -505,7 +505,9 @@ private function addOrmSection(ArrayNodeDefinition $node): void }) ->end() ->end() - ->booleanNode('enable_lazy_ghost_objects')->defaultValue(! method_exists(ProxyFactory::class, 'resetUninitializedProxy')) + ->booleanNode('enable_lazy_ghost_objects') + ->defaultValue(! method_exists(ProxyFactory::class, 'resetUninitializedProxy')) + ->info('Enables the new implementation of proxies based on lazy ghosts instead of using the legacy implementation') ->end() ->scalarNode('proxy_dir')->defaultValue('%kernel.cache_dir%/doctrine/orm/Proxies')->end() ->scalarNode('proxy_namespace')->defaultValue('Proxies')->end() diff --git a/Resources/doc/configuration.rst b/Resources/doc/configuration.rst index ffe4c9ea..f4130cbf 100644 --- a/Resources/doc/configuration.rst +++ b/Resources/doc/configuration.rst @@ -219,6 +219,8 @@ Configuration Reference auto_generate_proxy_classes: false proxy_dir: "%kernel.cache_dir%/doctrine/orm/Proxies" proxy_namespace: Proxies + # Enables the new implementation of proxies based on lazy ghosts instead of using the legacy implementation + enable_lazy_ghost_objects: false entity_managers: