@@ -467,7 +467,7 @@ Validation is a very powerful feature of Symfony and has its own
467
467
Validation Groups
468
468
~~~~~~~~~~~~~~~~~
469
469
470
- If your object takes advantage of :ref : `validation groups <book- validation-validation- groups >`,
470
+ If your object takes advantage of :doc : `validation groups </ validation/ groups >`,
471
471
you'll need to specify which validation group(s) your form should use::
472
472
473
473
$form = $this->createFormBuilder($users, array(
@@ -595,7 +595,7 @@ of the entity as well you have to adjust the option as follows::
595
595
}
596
596
597
597
You can find more information about how the validation groups and the default constraints
598
- work in the book section about :ref : `validation groups <book- validation-validation- groups >`.
598
+ work in the book section about :doc : `validation groups </ validation/ groups >`.
599
599
600
600
.. index ::
601
601
single: Forms; Validation groups based on clicked button
@@ -1899,6 +1899,8 @@ an array.
1899
1899
a better choice, since it returns the data (usually an object) after
1900
1900
it's been transformed by the Form component.
1901
1901
1902
+ .. _booking-validation-forms :
1903
+
1902
1904
Adding Validation
1903
1905
~~~~~~~~~~~~~~~~~
1904
1906
@@ -1915,7 +1917,7 @@ simple array of your submitted data, how can you add constraints to the data of
1915
1917
your form?
1916
1918
1917
1919
The answer is to setup the constraints yourself, and attach them to the individual
1918
- fields. The overall approach is covered a bit more in the :ref : `validation chapter <book- validation-raw-values >`,
1920
+ fields. The overall approach is covered a bit more in the :doc : `validation chapter </ validation/raw_values >`,
1919
1921
but here's a short example:
1920
1922
1921
1923
.. code-block :: php
0 commit comments