title: Symfony Form builder: how to organise/group fields into HTML sections from the controller
body: <p>I would like in the form builder controller to say this field belongs to this group then in the view/theme organize all of group1 into div1, group2 into div2, etc..</p>
  
  <p>I tried something like this (creating sub forms) but that is not working; I am not able to display the group</p>
  
  <pre><code>$builder-&gt;add(
      $builder-&gt;create('group1', FormType::class, array('inherit_data' =&gt; true))
          -&gt;add('brand', TextType::class, array(
              'label' =&gt; 'brand',
              'invalid_message' =&gt; 'Enter a brand',
      ))
  );
  </code></pre>
  
  <p>twig</p>
  
  <pre><code>{{ form_row(form.group1) }}
  </code></pre>