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] Add the exclude option to the Cascade constraint #49596

Merged
merged 1 commit into from
Mar 10, 2023

Conversation

alexandre-daubois
Copy link
Contributor

@alexandre-daubois alexandre-daubois commented Mar 4, 2023

Q A
Branch? 6.3
Bug fix? no
New feature? yes
Deprecations? no
Tickets NA
License MIT
Doc PR symfony/symfony-docs#18008

Just a little tweak to the Cascade constraint to make it even more useful, as the groups option is not available on it.

Copy link
Member

@nicolas-grekas nicolas-grekas left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks, this looks useful to me.

src/Symfony/Component/Validator/Constraints/Cascade.php Outdated Show resolved Hide resolved
src/Symfony/Component/Validator/Constraints/Cascade.php Outdated Show resolved Hide resolved
src/Symfony/Component/Validator/Constraints/Cascade.php Outdated Show resolved Hide resolved
src/Symfony/Component/Validator/Mapping/ClassMetadata.php Outdated Show resolved Hide resolved
@nicolas-grekas nicolas-grekas changed the title [Validator] Add the excluded option to the Cascade constraint [Validator] Add the exclude option to the Cascade constraint Mar 6, 2023
@fabpot
Copy link
Member

fabpot commented Mar 10, 2023

Thank you @alexandre-daubois.

@fabpot fabpot merged commit ae7a65e into symfony:6.3 Mar 10, 2023
OskarStark added a commit to symfony/symfony-docs that referenced this pull request Mar 10, 2023
…re-daubois)

This PR was merged into the 6.3 branch.

Discussion
----------

[Validator] Add `exclude` option to `Cascade`

Waiting code merge of symfony/symfony#49596

Commits
-------

7a1e101 [Validator] Add `exclude` option to `Cascade`
@fabpot fabpot mentioned this pull request May 1, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants