Last Updated: February 25, 2016
·
712
· charlybr

Adding non-entity fields to your forms

When you create your form, createEditForm() for example, use the mapped option :

$form = $this->createForm( ... )
$form->add('my_field', 'hidden', array('mapped' => false));