Skip to content

Commit 618e11d

Browse files
committed
Documented the overridden options for "time" type
1 parent 7ce8191 commit 618e11d

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

reference/forms/types/time.rst

+13
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,8 @@ stored as a ``DateTime`` object, a string, a timestamp or an array.
2727
| | - `with_seconds`_ |
2828
+----------------------+-----------------------------------------------------------------------------+
2929
| Overridden Options | - `by_reference`_ |
30+
| | - `compound`_ |
31+
| | - `data_class`_ |
3032
| | - `error_bubbling`_ |
3133
+----------------------+-----------------------------------------------------------------------------+
3234
| Inherited | - `data`_ |
@@ -139,6 +141,17 @@ by_reference
139141

140142
The ``DateTime`` classes are treated as immutable objects.
141143

144+
.. include:: /reference/forms/types/options/compound_type.rst.inc
145+
146+
data_class
147+
~~~~~~~~~~
148+
149+
**default**: ``null``
150+
151+
The internal normalized representation of this type is an array, not a ``\DateTime``
152+
object. Therefore, the ``data_class`` option is initialized to ``null`` to avoid
153+
the ``FormType`` object from initializing it to ``\DateTime``.
154+
142155
error_bubbling
143156
~~~~~~~~~~~~~~
144157

0 commit comments

Comments
 (0)