Skip to content

Commit

Permalink
Lowering the EntityValueResolver to be lower than the #[CurrentUser] …
Browse files Browse the repository at this point in the history
…feature

This would allow users to use `#[CurrentUser]` on an argument and not have that argument be queried for.
  • Loading branch information
weaverryan authored and ostrolucky committed Nov 8, 2022
1 parent db69ebd commit b7cc205
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Resources/config/orm.xml
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@
<service id="doctrine.orm.entity_value_resolver" class="Symfony\Bridge\Doctrine\ArgumentResolver\EntityValueResolver">
<argument type="service" id="doctrine" />
<argument type="service" id="doctrine.orm.entity_value_resolver.expression_language" on-invalid="ignore" />
<tag name="controller.argument_value_resolver" priority="110" />
<tag name="controller.argument_value_resolver" priority="30" />
</service>

<service id="doctrine.orm.entity_value_resolver.expression_language" class="Symfony\Component\ExpressionLanguage\ExpressionLanguage" />
Expand Down

0 comments on commit b7cc205

Please sign in to comment.