diff --git a/UPGRADE-3.1.md b/UPGRADE-3.1.md new file mode 100644 index 000000000..5b2b2baa9 --- /dev/null +++ b/UPGRADE-3.1.md @@ -0,0 +1,9 @@ +UPGRADE FROM 3.0 to 3.1 +======================= + +Configuration +------------- + +The `doctrine.orm.entity_managers.some_em.enable_native_lazy_objects` +configuration option is deprecated and will be removed in DoctrineBundle 4.0, +as native lazy objects are now always enabled. diff --git a/src/DependencyInjection/Configuration.php b/src/DependencyInjection/Configuration.php index a18467eb9..b10d3b967 100644 --- a/src/DependencyInjection/Configuration.php +++ b/src/DependencyInjection/Configuration.php @@ -410,7 +410,11 @@ private function addOrmSection(ArrayNodeDefinition $node): void ->ifTrue(static fn ($v) => $v === false) ->thenInvalid('The setting "enable_native_lazy_objects" can no longer be disabled and should not be set') ->end() - ->info('no-op, will be deprecated and removed in the future') + ->setDeprecated( + 'doctrine/doctrine-bundle', + '3.1', + 'The "%node%" option is deprecated and will be removed in DoctrineBundle 4.0, as native lazy objects are now always enabled.', + ) ->end() ->arrayNode('controller_resolver') ->canBeDisabled()