Skip to content

Commit dd001ad

Browse files
committed
Merge branch '2.7' into 2.8
Conflicts: validation.rst
2 parents 7b37ebc + 79af2c1 commit dd001ad

File tree

6 files changed

+584
-637
lines changed

6 files changed

+584
-637
lines changed

bundles/override.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -126,9 +126,9 @@ combines them into one validation metadata tree. This means you are able to
126126
add new constraints to a property, but you cannot override them.
127127

128128
To override this, the 3rd party bundle needs to have configuration for
129-
:ref:`validation groups <book-validation-validation-groups>`. For instance,
130-
the FOSUserBundle has this configuration. To create your own validation, add
131-
the constraints to a new validation group:
129+
:doc:`validation groups </validation/groups>`. For instance, the FOSUserBundle
130+
has this configuration. To create your own validation, add the constraints
131+
to a new validation group:
132132

133133
.. configuration-block::
134134

forms.rst

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -480,7 +480,7 @@ Validation is a very powerful feature of Symfony and has its own
480480
Validation Groups
481481
~~~~~~~~~~~~~~~~~
482482

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>`,
484484
you'll need to specify which validation group(s) your form should use::
485485

486486
$form = $this->createFormBuilder($users, array(
@@ -608,7 +608,7 @@ of the entity as well you have to adjust the option as follows::
608608
}
609609

610610
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>`.
612612

613613
.. index::
614614
single: Forms; Validation groups based on clicked button
@@ -1898,6 +1898,8 @@ an array.
18981898
a better choice, since it returns the data (usually an object) after
18991899
it's been transformed by the Form component.
19001900

1901+
.. _booking-validation-forms:
1902+
19011903
Adding Validation
19021904
~~~~~~~~~~~~~~~~~
19031905

@@ -1914,7 +1916,7 @@ simple array of your submitted data, how can you add constraints to the data of
19141916
your form?
19151917

19161918
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>`,
19181920
but here's a short example:
19191921

19201922
.. code-block:: php

0 commit comments

Comments
 (0)