Skip to content

Commit 9e2363d

Browse files
committed
Merge pull request #1973 from greg0ire/document_mapped
Document the mapped form type option
2 parents b46a025 + 9faeb49 commit 9e2363d

File tree

3 files changed

+16
-2
lines changed

3 files changed

+16
-2
lines changed

reference/forms/types/form.rst

+3-1
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,10 @@ on all fields.
1919

2020
.. include:: /reference/forms/types/options/trim.rst.inc
2121

22+
.. include:: /reference/forms/types/options/mapped.rst.inc
23+
2224
.. include:: /reference/forms/types/options/property_path.rst.inc
2325

2426
.. include:: /reference/forms/types/options/attr.rst.inc
2527

26-
.. include:: /reference/forms/types/options/translation_domain.rst.inc
28+
.. include:: /reference/forms/types/options/translation_domain.rst.inc
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
mapped
2+
~~~~~~
3+
4+
**type**: ``boolean``
5+
6+
If you wish the field to be ignored when reading or writing to the object, you
7+
can set the ``mapped`` option to ``false``

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

+6-1
Original file line numberDiff line numberDiff line change
@@ -11,4 +11,9 @@ you can set the ``property_path`` option. Its default value is the field's
1111
name.
1212
1313
If you wish the field to be ignored when reading or writing to the object
14-
you can set the ``property_path`` option to ``false``
14+
you can set the ``property_path`` option to ``false``, but using
15+
``property_path`` for this purpose is deprecated, you should do it the way
16+
described below:
17+
18+
.. versionadded:: 2.1
19+
Since 2.1, the ``mapped`` option has been added for this use-case.

0 commit comments

Comments
 (0)