Skip to content

Conversation

@chadyred
Copy link
Contributor

@chadyred chadyred commented Jan 10, 2024

Hello,

When I read what this option is about

doctrine: 
     orm:
         controller_resolver:
                  # Set to false to disable using route placeholders as lookup criteria when the primary key doesn't match the argument name
            auto_mapping:         true

The "id" is always allowed even when this option is false.

So I change the doc to say "ok, 'id' will continue to work but not the use of the other attribute as route param to autowire an entity"

@carsonbot carsonbot added this to the 7.1 milestone Jan 10, 2024
@chadyred chadyred changed the title [Doctrine] Misunderstand doctrine.orm.controller_resolver.auto_mapping [Doctrine] The use of doctrine.orm.controller_resolver.auto_mapping Jan 10, 2024
@javiereguiluz javiereguiluz modified the milestones: 7.1, 6.3 Jan 12, 2024
@javiereguiluz
Copy link
Member

Florian, thanks for this and all your other recent contributions!

@chadyred chadyred deleted the patch-7 branch February 10, 2024 17:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants