Skip to content

Commit ccabc95

Browse files
committed
feature #5023 Added a note about data transformers not being applied with inherit_data option set (javiereguiluz)
This PR was merged into the 2.3 branch. Discussion ---------- Added a note about data transformers not being applied with inherit_data option set | Q | A | ------------- | --- | Doc fix? | no | New docs? | yes | Applies to | 2.3+ | Fixed tickets | #4332 Commits ------- ca21fb6 Removed a wrong link to a included file 3e90336 Fixed an internal link 2bd8cf3 Added a note about data transformers not being applied with inherit_data option set
2 parents 65a33c0 + ca21fb6 commit ccabc95

File tree

2 files changed

+11
-0
lines changed

2 files changed

+11
-0
lines changed

cookbook/form/data_transformers.rst

+5
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,11 @@ You could try to do this in your controller, but it's not the best solution.
1717
It would be better if this issue were automatically converted to an Issue object.
1818
This is where Data Transformers come into play.
1919

20+
.. caution::
21+
22+
When a form field has the ``inherit_data`` option set, Data Transformers
23+
won't be applied to that field.
24+
2025
Creating the Transformer
2126
------------------------
2227

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

+6
Original file line numberDiff line numberDiff line change
@@ -10,3 +10,9 @@ inherit_data
1010
This option determines if the form will inherit data from its parent form.
1111
This can be useful if you have a set of fields that are duplicated across
1212
multiple forms. See :doc:`/cookbook/form/inherit_data_option`.
13+
14+
.. caution::
15+
16+
When a field has the ``inherit_data`` option set, it uses the data of the
17+
parent form as is. This means that :doc:`Data Transformers </cookbook/form/data_transformers>`
18+
won't be applied to that field.

0 commit comments

Comments
 (0)