title: Display ManyToOne field in Symfony2 forms?
body: <p>I am having two entity files one as user.php and another as usertype.php. now i want to display a login form with 3 fields viz username, password and usertype. the usertype will be a selection that will fetch data from usertype table. here is the code that i wrote inside user.php to create a manytoone field for usertype_id</p>
  
  <pre><code>/**
  * @ORM\ManyToOne(targetEntity="Usertype")
  */
  protected $usertype;
  </code></pre>
  
  <p>Below is my Form generation Code</p>
  
  <pre><code>class LoginForm extends AbstractType
  {
      public function buildForm(FormBuilder $builder, array $options)
      {
          $builder-&gt;add('login', 'text', array('label'  =&gt; 'Username',));
          $builder-&gt;add('password');
      }
  }
  </code></pre>
  
  <p>Now I need to add one more field to my form builder that will be a selection of usertype table.</p>