Skip to content

Commit 0364d87

Browse files
authored
Merge pull request #2116 from bobvandevijver/remove-controller-automapping
Remove controller resolver auto mapping option
2 parents 25290c9 + de31d5e commit 0364d87

File tree

2 files changed

+3
-13
lines changed

2 files changed

+3
-13
lines changed

UPGRADE-4.0.md

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

7+
The `doctrine.orm.controller_resolver.auto_mapping` only accepted `false`
8+
as value since 3.0 and is now removed.
9+
710
The `doctrine.orm.entity_managers.some_em.enable_native_lazy_objects`
811
configuration option has been removed as native lazy objects are now always
912
enabled.

src/DependencyInjection/Configuration.php

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -406,19 +406,6 @@ private function addOrmSection(ArrayNodeDefinition $node): void
406406
->arrayNode('controller_resolver')
407407
->canBeDisabled()
408408
->children()
409-
->booleanNode('auto_mapping')
410-
->defaultFalse()
411-
->validate()
412-
->ifTrue(static fn ($v) => $v !== false)
413-
->thenInvalid('The setting "controller_resolver.auto_mapping" can no longer be enabled and must be set to false')
414-
->end()
415-
->setDeprecated(
416-
'doctrine/doctrine-bundle',
417-
'3.1',
418-
'The "%node%" option is deprecated and will be removed in DoctrineBundle 4.0, as it only accepts `false` since 3.0.',
419-
)
420-
->info('Set to true to enable using route placeholders as lookup criteria when the primary key doesn\'t match the argument name')
421-
->end()
422409
->booleanNode('evict_cache')
423410
->info('Set to true to fetch the entity from the database instead of using the cache, if any')
424411
->defaultFalse()

0 commit comments

Comments
 (0)