title: twig render controller() passes an array instead of an object
body: <p>I'm trying to render a controller amd send the <code>$from-&gt;createView()</code> object. Now, this works in &lt;=2.1, but I can't seem to get it to work in 2.2.</p>
  
  <p>Here is the code:</p>
  
  <p>EventsContoller::newAction</p>
  
  <pre><code>return $this-&gt;render('SplurginEventsBundle:SplurginEventEvents:new.html.twig', array(
      'entity' =&gt; $entity,
      'form'   =&gt; $form-&gt;createView(),
      'existingFiles'=&gt;$existingFiles,
      'editId'=&gt;$editId,
      'isNew'=&gt;true,
  ));
  </code></pre>
  
  <p>Right now the <code>form</code> variable is holding an object of the form view, I verified with <code>var_dump</code>.</p>
  
  <p>In twig:</p>
  
  <pre><code>{% render controller('JulLocationBundle:Googlemaps:placesAutocomplete' , {locationForm: form}) %}
  </code></pre>
  
  <p>When I go to the controller <code>placesAutocomplete</code> and again use <code>var_dump</code>, I can see that it is an array and not an object.</p>
  
  <p>How can I send an object and not an array to the controller being rendered?</p>
  
  <h1>EDIT :</h1>
  
  <p>this issue was resolved , with lot's of edits .. if any one is interested in the JulLocationBundle i will provide a pull request in a few days .</p>