title: Symfony2 Setting a default choice field selection
body: <p>I am creating a form in the following manner:</p>
  
  <pre><code>$form = $this-&gt;createFormBuilder($breed)
               -&gt;add('species', 'entity', array(
                    'class' =&gt; 'BFPEduBundle:Item',
                    'property' =&gt; 'name',
                    'query_builder' =&gt; function(ItemRepository $er){
                        return $er-&gt;createQueryBuilder('i')
                                  -&gt;where("i.type = 'species'")
                                  -&gt;orderBy('i.name', 'ASC');
                    }))
               -&gt;add('breed', 'text', array('required'=&gt;true))
               -&gt;add('size', 'textarea', array('required' =&gt; false))
               -&gt;getForm()
  </code></pre>
  
  <p>How can I set a default value for the species listbox?</p>
  
  <hr>
  
  <p>Thank you for your response, I apologise, I think I should rephrase my question. Once I have a value that I retrieve from the model, how do I set that value as SELECTED="yes" for the corresponding value in the species choice list?</p>
  
  <p>So, that select option output from the TWIG view would appear like so:</p>
  
  <pre><code>&lt;option value="174" selected="yes"&gt;Dog&lt;/option&gt;
  </code></pre>