Skip to content
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

[Validator] Pass context to expressions used in When constraints #20312

Open
fabpot opened this issue Oct 10, 2024 · 1 comment
Open

[Validator] Pass context to expressions used in When constraints #20312

fabpot opened this issue Oct 10, 2024 · 1 comment
Labels
hasPR A Pull Request has already been submitted for this issue. Validator
Milestone

Comments

@fabpot
Copy link
Member

fabpot commented Oct 10, 2024

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! 😃

@KoNekoD
Copy link

KoNekoD commented Oct 10, 2024

Created Pull Request

#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

@xabbuh xabbuh added the hasPR A Pull Request has already been submitted for this issue. label Oct 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
hasPR A Pull Request has already been submitted for this issue. Validator
Projects
None yet
Development

No branches or pull requests

4 participants