You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
How to use GroupSequence and validation groups together when I have mapped and not mapped form fields? I have to validate non mapped fields only when mapped fields pass validation.
Mixing GroupSequence and validation_groups should be working as it say in PR #10287
For now, GroupSequence alone is working as expected, but when validation_groups is added, validation does not fail on first error.
Forked version here : https://github.com/shinab/symfony-standard
Test scenario
Put a dot in the field and valid
With current implementation, validation should fail directly after group3, but it passed thougt group2 and group1 too.
If you comment validation_groups in MyEntityType, validation fail after group1 as expected.
The text was updated successfully, but these errors were encountered: