-
-
Notifications
You must be signed in to change notification settings - Fork 9.6k
[Form] fix group sequence based validation #20975
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
xabbuh
commented
Dec 17, 2016
Q | A |
---|---|
Branch? | 2.7 |
Bug fix? | yes |
New feature? | no |
BC breaks? | no |
Deprecations? | no |
Tests pass? | yes |
Fixed tickets | #20929 |
License | MIT |
Doc PR |
$options = array('validation_groups' => array($this, 'getValidationGroups')); | ||
$form = $this->getBuilder('name', '\stdClass', $options) | ||
->setData($object) | ||
->getForm(); | ||
|
||
$this->expectValidateAt(0, 'data', $object, 'group1'); | ||
$this->expectValidateAt(1, 'data', $object, 'group2'); | ||
$this->expectValidateAt(0, 'data', $object, array('group1', 'group2')); |
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.
Looks like this bug fix is breaking BC with this behavioral change. But it seems the code was broken so I'm still 👍 for this one.
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.
@HeahDude Which BC break do you refer to?
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.
Arff, got confused by your refactoring :)
Thank you @xabbuh. |
This PR was merged into the 2.7 branch. Discussion ---------- [Form] fix group sequence based validation | Q | A | ------------- | --- | Branch? | 2.7 | Bug fix? | yes | New feature? | no | BC breaks? | no | Deprecations? | no | Tests pass? | yes | Fixed tickets | #20929 | License | MIT | Doc PR | Commits ------- fb91f74 [Form] fix group sequence based validation