-
-
Notifications
You must be signed in to change notification settings - Fork 9.6k
[Validator] Pass context to expressions used in When
constraints
#58512
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
Conversation
Hey! I see that this is your first PR. That is great! Welcome! Symfony has a contribution guide which I suggest you to read. In short:
Review the GitHub status checks of your pull request and try to solve the reported issues. If some tests are failing, try to see if they are failing because of this change. When two Symfony core team members approve this change, it will be merged and you will become an official Symfony contributor! I am going to sit back now and wait for the reviews. Cheers! Carsonbot |
Hey! Thanks for your PR. You are targeting branch "7.2" but it seems your PR description refers to branch "7.2 for features / 5.4, 6.4, and 7.1 for bug fixes". Cheers! Carsonbot |
@xabbuh Looks like it passed the tests(+-). What do you think of this feature? |
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.
Works for me (ExpressionValidator already has this)
Can you please add a line in the CHANGELOG of the component and a test case?
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.
Can you please rebase to get rid of the merge commit?
@nicolas-grekas rebased. I'm having trouble setting up the tests. CI is too long to do it quickly. Is there any way to set up vendors locally? I'm currently getting an error when installing from a docker container It is very frustrating that there is no Dockerfile and docker-compose to download dependencies or somehow resolve for it |
4b1eedf
to
fc9d69b
Compare
You can have a local PHP installation (not in Docker) with |
@nicolas-grekas done |
When
constraints
4637bf0
to
f05ce63
Compare
Thank you @KoNekoD. |
I encountered a problem with validation of nested entities and I needed to validate by parent field, if draft true then no validation is needed