form Field Type
Edit this pageWarning: You are browsing the documentation for Symfony 2.0, which is no longer maintained.
Read the updated version of this page for Symfony 6.3 (the current stable version).
form Field Type
See FormType.
Overridden Options
empty_data
default: array()
/ new $data_class()
When no data_class
option is specified, it will return an empty array.
Otherwise, it will default to a new instance of the class defined in
data_class
.
virtual
default: false
This work, including the code samples, is licensed under a
Creative Commons BY-SA 3.0
license.