title: Symfony 3.2. EntityType not working
body: <p>I don't know why this won't work:</p>
  
  <pre><code>-&gt;add('productSearchType', EntityType::class, array(
                  'label' =&gt; 'entity.text.product.product_search_number_type',
                  'class' =&gt; AC\ProductBundle\Entity\ProductSearchType::class,
                  'choice_label' =&gt; 'designation',
                  'expanded' =&gt; false,
                  'placeholder' =&gt; 
  'entity.text.product.select_product_search_number_type',
                  'query_builder' =&gt; function (EntityRepository $er) {
                      return $er-&gt;createQueryBuilder('e')
                              -&gt;orderBy('e.designation', 'ASC');
                  },
              ))
  </code></pre>
  
  <p>That's the error message:</p>
  
  <blockquote>
    <p>Catchable Fatal Error: Argument 1 passed to<br>
        Symfony\Bridge\Doctrine\Form\Type\DoctrineType::__construct()<br>
        must implement interface Doctrine\Common\Persistence\ManagerRegistry,<br>
        none given, called in (...)\src\Symfony\Component\Form\FormRegistry.php<br>
        on line 85 and defined (...)</p>
  </blockquote>