title: Symfony2 Forms: Retrieving data from entity field
body: <p>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. </p>
  
  <p>Here's how I am setting the form field:</p>
  
  <pre><code>-&gt;add('user', 'entity', array(
  'class' =&gt; 'DevUserBundle:User',
  'label'  =&gt; 'Assigned Users: ',
  'multiple'=&gt; true,))
  </code></pre>
  
  <p>In the controller I do the following:</p>
  
  <pre><code>$data = $form-&gt;getData();
  </code></pre>
  
  <p>I can access the field with <code>$data['user']</code> but beyond that I am lost.</p>