title: multiple rows in form for the same entity in symfony2
body: <p>I create a simple form with multiple rows:</p>
  
  <p>Controller:</p>
  
  <pre><code>public function indexAction() 
  {
      $repository = $this-&gt;getDoctrine()-&gt;getRepository('MyBundle:Product');
      $products = $repository-&gt;findAll();
  
      foreach ($products as $product) {
          $forms[] = $this-&gt;createForm(new ProductType, $product)-&gt;createView();
      }
  
      return $this-&gt;render('MBundle:Default:index.html.twig', array('form' =&gt; $forms);        
  
  }
  </code></pre>
  
  <p>I render this in a twig:</p>
  
  <pre><code>&lt;form action="{{ path('_submit') }}" method="post"&gt;
  {% for key, formData in forms %}
      {{ form_row(formData.id) }}
      {{ form_row(formData.name) }}
      {{ form_row(formData.nameEnglish) }}
      &lt;br clear="all" /&gt;
  {% endfor %}
  &lt;/form&gt;
  </code></pre>
  
  <p>When i submit form each of my input field set has the same name attributes and i get only the last one. How to grab all the rows and validate them in my submitAction() controller? Each input needs to have unique name, right? ... and perhaps i need to set somehow name="something[name][]" but how to do it?</p>