Skip to content

Commit fd31ab4

Browse files
authored
Merge branch '3.2.x' into feat/improve-phpstan-level-6
2 parents 5727d4e + 20e26d9 commit fd31ab4

File tree

2 files changed

+15
-2
lines changed

2 files changed

+15
-2
lines changed

docs/en/configuration.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -772,7 +772,7 @@ You can easily define `doctrine filters`_ in your configuration file:
772772
``myParameter: myValue``
773773
Bind the value ``myValue`` to the parameter ``myParameter`` (Optional)
774774

775-
.. _doctrine filters: http://docs.doctrine-project.org/projects/doctrine-orm/en/latest/reference/filters.html
775+
.. _doctrine filters: https://www.doctrine-project.org/projects/doctrine-orm/en/current/reference/filters.html
776776

777777
.. _`reference-dbal-configuration`:
778778

@@ -985,4 +985,4 @@ For example, to inject a connection with the name ``purchase_logs`` use this:
985985
$this->connection = $purchaseLogsConnection;
986986
}
987987
988-
.. _DBAL documentation: https://www.doctrine-project.org/projects/doctrine-dbal/en/2.10/index.html
988+
.. _DBAL documentation: https://www.doctrine-project.org/projects/doctrine-dbal/en/current/index.html

src/DependencyInjection/Configuration.php

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -418,6 +418,19 @@ private function addOrmSection(ArrayNodeDefinition $node): void
418418
->arrayNode('controller_resolver')
419419
->canBeDisabled()
420420
->children()
421+
->booleanNode('auto_mapping')
422+
->defaultFalse()
423+
->validate()
424+
->ifTrue(static fn ($v) => $v !== false)
425+
->thenInvalid('The setting "controller_resolver.auto_mapping" can no longer be enabled and must be set to false')
426+
->end()
427+
->setDeprecated(
428+
'doctrine/doctrine-bundle',
429+
'3.1',
430+
'The "%path%.%node%" option is deprecated and will be removed in DoctrineBundle 4.0, as it only accepts `false` since 3.0.',
431+
)
432+
->info('Set to true to enable using route placeholders as lookup criteria when the primary key doesn\'t match the argument name')
433+
->end()
421434
->booleanNode('evict_cache')
422435
->info('Set to true to fetch the entity from the database instead of using the cache, if any')
423436
->defaultFalse()

0 commit comments

Comments
 (0)