vg-jyw
Last Updated: February 25, 2016
·
503
· 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));