File tree 1 file changed +7
-1
lines changed
1 file changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -75,7 +75,7 @@ But if the form is not mapped to an object and you instead want to retrieve a
75
75
simple array of your submitted data, how can you add constraints to the data of
76
76
your form?
77
77
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
79
79
fields. The overall approach is covered a bit more in :doc: `this validation article </validation/raw_values >`,
80
80
but here's a short example::
81
81
@@ -112,3 +112,9 @@ but here's a short example::
112
112
If the form is not mapped to an object, every object in your array of
113
113
submitted data is validated using the ``Symfony\Component\Validator\Constraints\Valid ``
114
114
constraint, unless you :doc: `disable validation </form/disabling_validation >`.
115
+
116
+ .. caution ::
117
+
118
+ When a form is only partially submitted (for example, in an HTTP PATCH
119
+ request), only the constraints from the submitted form fields will be
120
+ evaluated.
You can’t perform that action at this time.
0 commit comments