File tree 1 file changed +13
-0
lines changed
1 file changed +13
-0
lines changed Original file line number Diff line number Diff line change @@ -30,6 +30,8 @@ day and year) or three select boxes (see the `widget`_ option).
30
30
| | - `years `_ |
31
31
+----------------------+-----------------------------------------------------------------------------+
32
32
| Overridden Options | - `by_reference `_ |
33
+ | | - `compound `_ |
34
+ | | - `data_class `_ |
33
35
| | - `error_bubbling `_ |
34
36
+----------------------+-----------------------------------------------------------------------------+
35
37
| Inherited | - `data `_ |
@@ -125,6 +127,17 @@ by_reference
125
127
126
128
The ``DateTime `` classes are treated as immutable objects.
127
129
130
+ .. include :: /reference/forms/types/options/compound_type.rst.inc
131
+
132
+ data_class
133
+ ~~~~~~~~~~
134
+
135
+ **default **: ``null ``
136
+
137
+ The internal normalized representation of this type is an array, not a ``\DateTime ``
138
+ object. Therefore, the ``data_class `` option is initialized to ``null `` to avoid
139
+ the ``FormType `` object from initializing it to ``\DateTime ``.
140
+
128
141
error_bubbling
129
142
~~~~~~~~~~~~~~
130
143
You can’t perform that action at this time.
0 commit comments