title: Doctrine ChoiceType setting a default value on form load
body: <p>I have created a form on a Symfony CRM using the <code>buildForm()</code> function in a form type file. This form includes a choice drop down consisting of simple "yes" and "no" options which map to 1 and 0 respectively. I need to be able to have "no" as the default as my client more often will select this option over the "yes". After reading the documentation <a href="https://symfony.com/doc/current/reference/forms/types/choice.html#choice-value" rel="nofollow noreferrer">here</a> I figured that the <code>preferred_choices</code> option would suit my needs.</p>
  
  <p>Here is my entry in the <code>buildForm()</code> :</p>
  
  <pre><code>$builder-&gt;add('non_rider', ChoiceType::class,
      array(
          'label' =&gt; 'Is Non-Rider',
          'required' =&gt; true,
          'placeholder' =&gt; false,
          'choices' =&gt; array(
              'Yes' =&gt; 1,
              'No' =&gt; 0
          ),
          'preferred_choices' =&gt; array(0,1),
          'label_attr' =&gt; array(
              'class' =&gt; 'control-label'
          ),
          'attr' =&gt; array(
              'class' =&gt; 'form-control required'
          )
      ));
  </code></pre>
  
  <p>However, this brings out the order as "Yes" then "No" with "Yes" as the default selected option. I was wondering if it reads <code>0</code> as null, which means it doesn't register? Is there any way to make "No" the auto-selected option on form load?</p>