Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions UPGRADE-4.0.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@ UPGRADE FROM 3 to 4
Configuration
-------------

The `doctrine.orm.controller_resolver.auto_mapping` only accepted `false`
as value since 3.0 and is now removed.

The `doctrine.orm.entity_managers.some_em.enable_native_lazy_objects`
configuration option has been removed as native lazy objects are now always
enabled.
13 changes: 0 additions & 13 deletions src/DependencyInjection/Configuration.php
Original file line number Diff line number Diff line change
Expand Up @@ -406,19 +406,6 @@ private function addOrmSection(ArrayNodeDefinition $node): void
->arrayNode('controller_resolver')
->canBeDisabled()
->children()
->booleanNode('auto_mapping')
->defaultFalse()
->validate()
->ifTrue(static fn ($v) => $v !== false)
->thenInvalid('The setting "controller_resolver.auto_mapping" can no longer be enabled and must be set to false')
->end()
->setDeprecated(
'doctrine/doctrine-bundle',
'3.1',
'The "%node%" option is deprecated and will be removed in DoctrineBundle 4.0, as it only accepts `false` since 3.0.',
)
->info('Set to true to enable using route placeholders as lookup criteria when the primary key doesn\'t match the argument name')
->end()
->booleanNode('evict_cache')
->info('Set to true to fetch the entity from the database instead of using the cache, if any')
->defaultFalse()
Expand Down