title: Setting name attribute of symfony 2 form field
body: <p>How to set name attribute of rendered field in symfony 2?</p>
  
  <p>Expected output:</p>
  
  <pre><code>     &lt;input type="text" name="test" value="test" /&gt;
  </code></pre>
  
  <p>Rendering the field this way</p>
  
  <pre><code>     {{ form_widget(form.test, { 'attr': {'name': 'test'} }) }}
  </code></pre>
  
  <p>definitely does not work.</p>
  
  <p>Output is still </p>
  
  <pre><code>     &lt;input type="text" name="form[test]" value="test" /&gt;.
  </code></pre>
  
  <p>Is there any way to set the name attribute or id attribute dynamically? Thank you.</p>