title: Symfony Form passing values from collection to form type
body: <p>i have a collection type:</p>
  
  <pre><code>-&gt;add('tipi', CollectionType::class, array(
                  'entry_type' =&gt; TipiType::class,
                  'allow_add' =&gt; true,
                  'prototype' =&gt; true,
                  'mapped' =&gt; false,
                  'entry_options' =&gt; array(
                      'required' =&gt; true,
                      'label' =&gt; false,
                  )
              ))
  </code></pre>
  
  <p>Extend this formtype:</p>
  
  <pre><code> -&gt;add('tipi', EntityType::class, array(
                  'label' =&gt; 'Tipo',
                  'class' =&gt; 'AppBundle:Tipi',
                  'attr' =&gt; array('class' =&gt; 'form-control'),
                  'query_builder' =&gt; function (EntityRepository $er) {
              return $er-&gt;createQueryBuilder('t')
                      -&gt;innerJoin('t.requests', 'r')
              ;
          },
              ))
      ;
  </code></pre>
  
  <p>In the first form type i have an options sended from controller in this way:</p>
  
  <pre><code>$idRequest = $request-&gt;get('id');
  $form = $this-&gt;createForm(RequestsType::class, $requests, array('id_request' =&gt; $idRequest));
  </code></pre>
  
  <p>In the first i can used it but in the child FormType not.. I would passing this variable in the collection type..
  Someone can help me??</p>