Skip to content

Commit 7312668

Browse files
committed
clarify constraints on non-submitted forms
1 parent f49d24b commit 7312668

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

form/without_class.rst

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ But if the form is not mapped to an object and you instead want to retrieve a
7575
simple array of your submitted data, how can you add constraints to the data of
7676
your form?
7777

78-
The answer is to setup the constraints yourself, and attach them to the individual
78+
The answer is to set up the constraints yourself, and attach them to the individual
7979
fields. The overall approach is covered a bit more in :doc:`this validation article </validation/raw_values>`,
8080
but here's a short example::
8181

@@ -112,3 +112,9 @@ but here's a short example::
112112
If the form is not mapped to an object, every object in your array of
113113
submitted data is validated using the ``Symfony\Component\Validator\Constraints\Valid``
114114
constraint, unless you :doc:`disable validation </form/disabling_validation>`.
115+
116+
.. caution::
117+
118+
If a form is not submitted with the request (for example, when a form
119+
is only partially submitted in a HTTP PATCH request), the constraints
120+
configured for this particular form will be ignored.

0 commit comments

Comments
 (0)