Skip to content

Commit c52de18

Browse files
authored
Merge pull request #2117 from bobvandevijver/deprecate-controller-automapping
Deprecate controller resolver auto mapping option
2 parents 3d85b88 + 2ec4ffe commit c52de18

File tree

2 files changed

+9
-0
lines changed

2 files changed

+9
-0
lines changed

UPGRADE-3.1.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,10 @@ UPGRADE FROM 3.0 to 3.1
44
Configuration
55
-------------
66

7+
The `doctrine.orm.controller_resolver.auto_mapping` only accepts `false`
8+
as value since 3.0 and supplying the value explicitly is now marked as
9+
deprecated.
10+
711
The `doctrine.orm.entity_managers.some_em.enable_native_lazy_objects`
812
configuration option is deprecated and will be removed in DoctrineBundle 4.0,
913
as native lazy objects are now always enabled.

src/DependencyInjection/Configuration.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -425,6 +425,11 @@ private function addOrmSection(ArrayNodeDefinition $node): void
425425
->ifTrue(static fn ($v) => $v !== false)
426426
->thenInvalid('The setting "controller_resolver.auto_mapping" can no longer be enabled and must be set to false')
427427
->end()
428+
->setDeprecated(
429+
'doctrine/doctrine-bundle',
430+
'3.1',
431+
'The "%node%" option is deprecated and will be removed in DoctrineBundle 4.0, as it only accepts `false` since 3.0.',
432+
)
428433
->info('Set to true to enable using route placeholders as lookup criteria when the primary key doesn\'t match the argument name')
429434
->end()
430435
->booleanNode('evict_cache')

0 commit comments

Comments
 (0)