Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork9.7k
[SecurityBundle] SetUserValueResolver's priority higher thanEntityValueResolver#48032
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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
Uh oh!
There was an error while loading.Please reload this page.
Conversation
carsonbot commentedOct 29, 2022
Hey! I think@johnkrovitch has recently worked with this code. Maybe they can help review this? Cheers! Carsonbot |
nicolas-grekas left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others.Learn more.
Related todoctrine/DoctrineBundle#1578
stof commentedNov 9, 2022
The impact would be that if you have a parameter typehinted as |
nicolas-grekas commentedNov 9, 2022
Thank you@kbond. |
Uh oh!
There was an error while loading.Please reload this page.
UserValueResolver's priority is currently40andEntityValueResolver's priority is110(configured in doctrine-bundle).Currently, to use the
CurrentUserattribute andMapEntity(whenauto_mappingis enabled), you need to do the following to have it work:This removes this need for
#[MapEntity(disabled: true)]but I'm not sure the larger impact of increasing the priority ofUserValueResolver. Here is some context as to why the priorities are they way they are: