From f44e971770c8aa0949b088bd53dc6ff14659828b Mon Sep 17 00:00:00 2001 From: Javier Eguiluz Date: Mon, 25 May 2015 12:43:30 +0200 Subject: [PATCH] Documented the overridden options of "date" type --- reference/forms/types/date.rst | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/reference/forms/types/date.rst b/reference/forms/types/date.rst index 33794d61d78..becfa3ca5bb 100644 --- a/reference/forms/types/date.rst +++ b/reference/forms/types/date.rst @@ -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`_ | @@ -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 ~~~~~~~~~~~~~~