File tree Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -148,9 +148,10 @@ view layer:
148
148
Validation
149
149
----------
150
150
151
- The `constraints `_ option allows you to attach `validation constraints `_ to any
152
- form field. However, doing that prevents the validation from being reused in
153
- other forms or other places where the mapped object is used.
151
+ The :ref: `constraints <reference-form-option-constraints >` option allows you to
152
+ attach :doc: `validation constraints </reference/constraints >` to any form field.
153
+ However, doing that prevents the validation from being reused in other forms or
154
+ other places where the mapped object is used.
154
155
155
156
.. best-practice ::
156
157
@@ -235,6 +236,3 @@ like the form is *always* processed (even on the GET request).
235
236
----
236
237
237
238
Next: :doc: `/best_practices/i18n `
238
-
239
- .. _`constraints` : https://symfony.com/doc/current/reference/forms/types/form.html#constraints
240
- .. _`validation constraints` : https://symfony.com/doc/current/reference/constraints.html
Original file line number Diff line number Diff line change @@ -73,6 +73,8 @@ option on the form.
73
73
74
74
.. include :: /reference/forms/types/options/compound.rst.inc
75
75
76
+ .. _reference-form-option-constraints :
77
+
76
78
.. include :: /reference/forms/types/options/constraints.rst.inc
77
79
78
80
.. include :: /reference/forms/types/options/data.rst.inc
You can’t perform that action at this time.
0 commit comments