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:
148148Validation
149149----------
150150
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.
154155
155156.. best-practice ::
156157
@@ -235,6 +236,3 @@ like the form is *always* processed (even on the GET request).
235236----
236237
237238Next: :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.
7373
7474.. include :: /reference/forms/types/options/compound.rst.inc
7575
76+ .. _reference-form-option-constraints :
77+
7678.. include :: /reference/forms/types/options/constraints.rst.inc
7779
7880.. include :: /reference/forms/types/options/data.rst.inc
You can’t perform that action at this time.
0 commit comments