From 6c408dc892996dac9dab67c5e74ee8a46578cb96 Mon Sep 17 00:00:00 2001 From: Christophe Coevoet Date: Mon, 4 Dec 2023 09:55:29 +0100 Subject: [PATCH 1/2] Add enable_lazy_ghost_objects in the configuration reference --- Resources/doc/configuration.rst | 2 ++ 1 file changed, 2 insertions(+) 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: From dccb004473611d90c54ed93bf69b54080c002ab9 Mon Sep 17 00:00:00 2001 From: Christophe Coevoet Date: Mon, 4 Dec 2023 14:16:49 +0100 Subject: [PATCH 2/2] Add the info for the enable_lazy_ghost_objects node --- DependencyInjection/Configuration.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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()