File tree Expand file tree Collapse file tree 1 file changed +10
-3
lines changed
reference/forms/types/options Expand file tree Collapse file tree 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:
3434 object, the property path is ``[indexName]``;
3535* You can construct nested property paths by concatenating them, separating
3636 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;
4037* 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