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));
Written by CharlyBr
Related protips
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Php
Authors
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#