File tree 1 file changed +10
-3
lines changed
reference/forms/types/options
1 file changed +10
-3
lines changed Original file line number Diff line number Diff line change @@ -34,7 +34,14 @@ Here are the rules for the left and the right side of the mapping:
34
34
object, the property path is ``[indexName]``;
35
35
* You can construct nested property paths by concatenating them, separating
36
36
properties by dots. For example: ``addresses[work].matchingCityAndZipCode``;
37
- * The left side of the error mapping also accepts a dot ``.``, which refers
38
- to the field itself. That means that any error added to the field is added
39
- to the given nested field instead;
40
37
* The right side contains simply the names of fields in the form.
38
+
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::
42
+
43
+ $resolver->setDefaults(array(
44
+ 'error_mapping' => array(
45
+ '.' => 'city',
46
+ ),
47
+ ));
You can’t perform that action at this time.
0 commit comments