Skip to content

[Doctrine] The use of doctrine.orm.controller_resolver.auto_mapping #19408

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jan 12, 2024

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