title: Select option of choice dropdown in a form
body: <p>I want to select an option in the dropdown from the controller. I am trying with the following piece of code:</p>
  
  <pre><code>$form = $this-&gt;createForm(new SearchAdvancedType());
  $form-&gt;get('option')-&gt;setData($session-&gt;get('option'));
  </code></pre>
  
  <p>But it is doing nothing in the dropdown. Nothing is selected when the page loads. </p>
  
  <p>To check if the value was well set I print it using:</p>
  
  <pre><code>$form-&gt;get('brand')-&gt;Data();
  </code></pre>
  
  <p>and the result was a number (it changes depending of what I choosed in the dropdown before).</p>
  
  <p>I need to know the way to select the value of the dropdown properly.  </p>