title: How to set up default value in symfony2 select box with data from database
body: <p>I have this code</p>
  
  <pre><code>-&gt;add('user', 'entity', array(
                              'class' =&gt; 'Acme\Entity\User',
                              'query_builder' =&gt; function(EntityRepository $er) use ($options)
       {                        return $er-&gt;createQueryBuilder('u')
                                 -&gt;orderBy('u.name', 'ASC');
                              },
              'data' =&gt; $option['id']
              ))
  </code></pre>
  
  <p>Its not working</p>
  
  <pre><code>public function buildForm(FormBuilderInterface $builder, array $options)
  
  
      {
              $builder
                -&gt;add('description')
  
                -&gt;add('user', 'entity', array(
                  'class' =&gt; 'Acme\Entity\User',
                  'query_builder' =&gt; function(EntityRepository $er) use ($options) {
                      return $er-&gt;createQueryBuilder('u');
  
                  },
                'preferred_choices' =&gt; array('2')
                ))
          ;
      }
  </code></pre>