Skip to content

Commit

Permalink
Documented overridden options for "file" type
Browse files Browse the repository at this point in the history
  • Loading branch information
javiereguiluz committed Jun 4, 2015
1 parent 8e825d9 commit e41b3cc
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions reference/forms/types/file.rst
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,10 @@ The ``file`` type represents a file input in your form.
+-------------+---------------------------------------------------------------------+
| Rendered as | ``input`` ``file`` field |
+-------------+---------------------------------------------------------------------+
| Overridden | - `compound`_ |
| Options | - `data_class`_ |
| | - `empty_data`_ |
+-------------+---------------------------------------------------------------------+
| Inherited | - `disabled`_ |
| options | - `empty_data`_ |
| | - `error_bubbling`_ |
Expand All @@ -24,6 +28,26 @@ The ``file`` type represents a file input in your form.
| Class | :class:`Symfony\\Component\\Form\\Extension\\Core\\Type\\FileType` |
+-------------+---------------------------------------------------------------------+

Overridden Options
------------------

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

data_class
~~~~~~~~~~

**default**: :class:`Symfony\\Component\\HttpFoundation\\File\\File`

This option sets the appropriate file-realted data mapper to be used by the type.

empty_data
~~~~~~~~~~

**default**: ``null``

This option is set to ``null`` automatically because it is not used by the
renderd field widget.

Basic Usage
-----------

Expand Down

0 comments on commit e41b3cc

Please sign in to comment.