-
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
Remove configuration form validation groups #3731
Remove configuration form validation groups #3731
Conversation
@pjedrzejewski I think you're right! This feature is an overkill, I guest it is use rarely... |
e2c4455
to
1bce078
Compare
1bce078
to
19ba996
Compare
…-validation-groups Remove configuration form validation groups
I like cleanups! Thanks Paweł! 👍 |
$validationGroups = array('Default'); | ||
} | ||
|
||
$definition->setArguments(array( | ||
$metadata->getClass('model'), | ||
$validationGroups, | ||
$validationGroups |
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.
IMO this should be reverted ;)
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.
👍
…n-form-validation-groups Remove configuration form validation groups
Based on #3721.
Helloes.
This change basically forces all Sylius resource forms to use Default validation group. Result:
validation_groups
config node is available for every single resource, thus we maintain the ability to completely rework validation.I did that for Promotion only right now, but will do this for everything else if I get support from you guys. :) Let me know what do you think!
Will be easier to review once #3721 is merged. Perhaps wait with reviewing the code.