You are browsing the documentation for Symfony 2.0 which is not maintained anymore.

Consider upgrading your projects to Symfony 5.3.

form Field Type

form Field Type

See Symfony\Component\Form\Extension\Core\Type\FormType.

Overridden Options


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.


default: false


default: true

Errors of the form bubbles to the root form by default.

This work, including the code samples, is licensed under a Creative Commons BY-SA 3.0 license.