8000 minor #10948 Update sequence_provider.rst (DonCallisto) · symfony/symfony-docs@4353849 · GitHub
[go: up one dir, main page]

Skip to content

Commit 4353849

Browse files
committed
minor #10948 Update sequence_provider.rst (DonCallisto)
This PR was submitted for the master branch but it was squashed and merged into the 3.4 branch instead (closes #10948). Discussion ---------- Update sequence_provider.rst I think that is better to explain this difference as someone could misunderstand and think that a group in the sequence, alone, will trigger the validation of all groups in the sequence. Commits ------- 7f5d9c3 Update sequence_provider.rst
2 parents e10fd56 + 7f5d9c3 commit 4353849

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

validation/sequence_provider.rst

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -139,6 +139,13 @@ that group are valid, the second group, ``Strict``, will be validated.
139139
infinite recursion (as the ``Default`` group references the group
140140
sequence, which will contain the ``Default`` group which references the
141141
same group sequence, ...).
142+
143+
.. caution::
144+
145+
Calling ``validate()`` with a group in the sequence (``Strict`` in previous example)
146+
will cause a validation **only** with that group and not with all the groups in the
147+
sequence.
148+
This is because sequence is now referred to ``Default`` group validation.
142149

143150
You can also define a group sequence in the ``validation_groups`` form option::
144151

0 commit comments

Comments
 (0)
0