Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 9e2363d

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

File tree

Expand file treeCollapse file tree

3 files changed

+16
-2
lines changed
Filter options
Expand file treeCollapse file tree

3 files changed

+16
-2
lines changed

‎reference/forms/types/form.rst

Copy file name to clipboardExpand all lines: reference/forms/types/form.rst
+3-1Lines changed: 3 additions & 1 deletion
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
+7Lines changed: 7 additions & 0 deletions
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

Copy file name to clipboardExpand all lines: reference/forms/types/options/property_path.rst.inc
+6-1Lines changed: 6 additions & 1 deletion
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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.