symfony-docs icon indicating copy to clipboard operation
symfony-docs copied to clipboard

[Validator] Pass context to expressions used in `When` constraints

Open fabpot opened this issue 1 year ago • 1 comments

Q A
Feature PR symfony/symfony#58512
PR author(s) @KoNekoD
Merged in 7.2

We created this issue to not forget to document this new feature. We would really appreciate if you can help us with this task. If you are not sure how to do it, please ask us and we will help you.

To fix this issue, please create a PR against the 7.2 branch in the symfony-docs repository.

Thank you! :smiley:

fabpot avatar Oct 10 '24 05:10 fabpot

Created Pull Request

https://github.com/symfony/symfony-docs/issues/20314

Please advise where is the best place to add documentation on how to use context? I think we should create a separate paragraph with declaration of 2 classes, where the child class through context.root checks the parent's property to activate its validation

KoNekoD avatar Oct 10 '24 08:10 KoNekoD

Closed by #20314.

javiereguiluz avatar Jan 14 '25 08:01 javiereguiluz