Skip to content

Commit 1139127

Browse files
committed
[#6156] Apply xabbuh's proposal
1 parent d5b2949 commit 1139127

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

reference/forms/types/options/error_mapping.rst.inc

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,9 +36,10 @@ Here are the rules for the left and the right side of the mapping:
3636
properties by dots. For example: ``addresses[work].matchingCityAndZipCode``;
3737
* The right side contains simply the names of fields in the form.
3838

39-
Additionally, you can set the left side to dot (``.``), which refers to any
40-
unmapped property or method needing validation to the given nested field instead
41-
of bubbling them to the form::
39+
By default, errors for any property that is not mapped will bubble up to the
40+
parent form. You can use the dot (``.``) on the left side to map errors of all
41+
unmapped properties to a particular field. For instance, to map all these
42+
errors to the ``city`` field, use::
4243

4344
$resolver->setDefaults(array(
4445
'error_mapping' => array(

0 commit comments

Comments
 (0)