title: Symfony - How to pass a variable to an embedded form
body: <p>I'm facing a problem with Symfony3 and forms.</p>
  
  <p>I have a <strong>Parent</strong> form with an embedded <strong>Child</strong> form. From the controller, I can send data I can use in the <strong>Parent</strong> form with the $options array ($options['varA'], ...).</p>
  
  <pre><code>$form = $this-&gt;createForm(ParentEntityType::class, $objParent, array('varA'=&gt;$varA, 'varB'=&gt;$varB));
  </code></pre>
  
  <p>But what if I want to pass the varB variable (for example) to the embedded form ? What's the proper solution ? </p>
  
  <p>Any help will be appreciated, thanks.</p>