Skip to content

Commit f44e971

Browse files
committed
Documented the overridden options of "date" type
1 parent e41b3cc commit f44e971

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

reference/forms/types/date.rst

+13
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,8 @@ day and year) or three select boxes (see the `widget`_ option).
3030
| | - `years`_ |
3131
+----------------------+-----------------------------------------------------------------------------+
3232
| Overridden Options | - `by_reference`_ |
33+
| | - `compound`_ |
34+
| | - `data_class`_ |
3335
| | - `error_bubbling`_ |
3436
+----------------------+-----------------------------------------------------------------------------+
3537
| Inherited | - `data`_ |
@@ -125,6 +127,17 @@ by_reference
125127

126128
The ``DateTime`` classes are treated as immutable objects.
127129

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+
128141
error_bubbling
129142
~~~~~~~~~~~~~~
130143

0 commit comments

Comments
 (0)