title: Access variable from FormType in types twig template
body: <p>I created a custom form type like this:</p>
  
  <pre><code>class PositioningFlashType extends AbstractType                           
  {                                                                         
      public function setDefaultOptions(OptionsResolverInterface $resolver) 
      {                                                                     
          $resolver-&gt;setDefaults(array(                                     
              'game' =&gt; new Game()                                          
          ));                                                               
      }                                                                     
  
      public function getParent()                                           
      {                                                                     
          return 'form';                                                    
      }                                                                     
  
      /**                                                                   
       * Returns the name of this type.                                     
       *                                                                    
       * @return string The name of this type                               
       */                                                                   
      public function getName()                                             
      {                                                                     
          return 'positioning_flash';                                       
      }                                                                     
  
  }    
  </code></pre>
  
  <p>And in another form (<code>GameType</code>) type I use it like this:</p>
  
  <pre><code>$builder                                                 
      -&gt;add('flash', new PositioningFlashType(), array(    
          'mapped' =&gt; false,                               
          'game' =&gt; $options['game']                       
      ))   
  </code></pre>
  
  <p>And inside the controller I want to create the whole form:</p>
  
  <pre><code>private function createEditForm(Game $entity)                                           
  {                                                                                       
      $form = $this-&gt;createForm(new GameType(), $entity, array(                           
          'action' =&gt; $this-&gt;generateUrl('game_update', array('id' =&gt; $entity-&gt;getId())), 
          'method' =&gt; 'PUT',                                                              
          'edit' =&gt; true,                                                                 
          'game' =&gt; $entity                                                               
      ));                                                                                 
  
      $form-&gt;add('submit', 'submit', array('label' =&gt; 'Speichern'));                      
  
      return $form;                                                                       
  }   
  </code></pre>
  
  <p>So basically, all I want to do is to pass-through the <code>Game</code> instance to the <code>PositioningFlashType</code> and inside it's template I want to access this <code>game</code> instance like this:</p>
  
  <pre><code>value="{{ asset('data/swf/backendtool.swf') }}?game={{ game.id }}
  </code></pre>
  
  <p>But symfony throws an error, saying that the variable <code>game</code> is not defined.</p>
  
  <p>What is the correct way to pass-through a variable from the controller to a nested FormType?                                              </p>