Skip to content

Commit 2bd8cf3

Browse files
committed
Added a note about data transformers not being applied with inherit_data option set
1 parent e5dbd49 commit 2bd8cf3

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 field has the :doc:`inherit_data </reference/forms/types/options/inherit_data.rst.inc>`
23+
option set, Data Transformers 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)