Skip to content

Commit

Permalink
Documented the overridden options of "date" type
Browse files Browse the repository at this point in the history
  • Loading branch information
javiereguiluz committed Jun 4, 2015
1 parent e41b3cc commit f44e971
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions reference/forms/types/date.rst
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,8 @@ day and year) or three select boxes (see the `widget`_ option).
| | - `years`_ |
+----------------------+-----------------------------------------------------------------------------+
| Overridden Options | - `by_reference`_ |
| | - `compound`_ |
| | - `data_class`_ |
| | - `error_bubbling`_ |
+----------------------+-----------------------------------------------------------------------------+
| Inherited | - `data`_ |
Expand Down Expand Up @@ -125,6 +127,17 @@ by_reference

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

.. include:: /reference/forms/types/options/compound_type.rst.inc

data_class
~~~~~~~~~~

**default**: ``null``

The internal normalized representation of this type is an array, not a ``\DateTime``
object. Therefore, the ``data_class`` option is initialized to ``null`` to avoid
the ``FormType`` object from initializing it to ``\DateTime``.

error_bubbling
~~~~~~~~~~~~~~

Expand Down

0 comments on commit f44e971

Please sign in to comment.