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