I feel like I am missing something obvious here, I have an entity form field that gives a list of users to select from , the idea here is creating a project and associate it with that (or several) users. I achieved this without much problems but I can't figure out how to access and work with that form field.
Here's how I am setting the form field:
->add('user', 'entity', array(
'class' => 'DevUserBundle:User',
'label' => 'Assigned Users: ',
'multiple'=> true,))
In the controller I do the following:
$data = $form->getData();
I can access the field with $data['user'] but beyond that I am lost.