Skip to content

Commit 58170fe

Browse files
committed
document the auto_initialize option for the form type, refs symfony#3410
1 parent 2ca0306 commit 58170fe

File tree

2 files changed

+11
-0
lines changed

2 files changed

+11
-0
lines changed

reference/forms/types/form.rst

+3
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ on all types for which ``form`` is the parent type.
3636
| | - `label`_ |
3737
| | - `attr`_ |
3838
| | - `translation_domain`_ |
39+
| | - `auto_initialize`_ |
3940
+-----------+--------------------------------------------------------------------+
4041
| Parent | none |
4142
+-----------+--------------------------------------------------------------------+
@@ -121,3 +122,5 @@ of the form type tree (i.e. it can not be used as a form type on its own).
121122
.. include:: /reference/forms/types/options/attr.rst.inc
122123

123124
.. include:: /reference/forms/types/options/translation_domain.rst.inc
125+
126+
.. include:: /reference/forms/types/options/auto_initialize.rst.inc
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
auto_initialize
2+
~~~~~~~~~~~~~~~
3+
4+
**type**: ``boolean`` **default**: ``true``
5+
6+
An internal option: sets whether the form should be initialized automatically.
7+
For all fields, this option should only be ``true`` for root forms. You won't
8+
need to change this option and probably won't need to worry about it.

0 commit comments

Comments
 (0)