title: Symfony: How to avoid custom form-types getting wrapped in a div automatically?
body: <p>UserType Form:</p>
  
  <pre><code>class UserType
  {
      public function buildForm(FormBuilderInterface $builder, array $options)
      {
          $builder-&gt;add('email', 'email', ['label' =&gt; 'EMail']);
          // various other fields....
      }
  
      public function setDefaultOptions(OptionsResolverInterface $resolver)
      {
          $resolver-&gt;setDefaults(array(
              'validation_groups' =&gt; array('registration'),
              'data_class' =&gt; 'Vendor\Model\Entity\User',
          ));
      }
  
      public function getName()
      {
          return 'form_user';
      }
  }
  </code></pre>
  
  <p>TutorType Form:</p>
  
  <pre><code>class TutorType extends Translate
  {
      public function buildForm(FormBuilderInterface $builder, array $options)
      {
          $builder-&gt;add('user', new UserType(), ['label' =&gt; false]);
  
          $builder-&gt;add('school', 'entity', [
              'class' =&gt; 'Model:School',
              'property' =&gt; 'name',
              'label' =&gt; 'Label'
          ]);
  
          // Various other fields
          $builder-&gt;add('save', 'Submit');
      }
  
      public function setDefaultOptions(OptionsResolverInterface $resolver)
      {
          $resolver-&gt;setDefaults(array(
              //'validation_groups' =&gt; array('registration'),
              'data_class' =&gt; 'Vendor\Model\Entity\Tutor',
              'cascade_validation' =&gt; true,
          ));
      }
  
      public function getName()
      {
          return 'form_tutor';
      }
  }
  </code></pre>
  
  <p>When rendering, the <code>UserType</code> is rendered inside a div, i cant find a way to overcome this.</p>
  
  <p>The Form is rendered as </p>
  
  <p><img src="https://i.stack.imgur.com/lwU67.png" alt="the result"></p>
  
  <pre><code>&lt;form name="form_tutor"
        method="post"
        action=""
        novalidate="novalidate"
        class="form-horizontal form-horizontal"
        id="form_tutor"&gt;
      &lt;div id="form_tutor"
           novalidate="novalidate"
           class="form-horizontal"&gt;
          &lt;div class="form-group"&gt;
              &lt;div class="col-lg-10"&gt;
                  &lt;div id="form_tutor_user"&gt;
                      &lt;div class="form-group"&gt;
                          &lt;label class="col-lg-2 control-label aaaa required"
                               for="form_tutor_user_email"&gt;EMail&lt;/label&gt;
  
                          &lt;div class="col-lg-10"&gt;
                              &lt;input type="email"
                                   id="form_tutor_user_email"
                                   name="form_tutor[user][email]"
                                   required="required"
                                   class="form-control" /&gt;
                          &lt;/div&gt;
                      &lt;/div&gt;
                  &lt;/div&gt;
              &lt;/div&gt;
          &lt;/div&gt;
  
          &lt;div class="form-group"&gt;
              &lt;label class="col-lg-2 control-label aaaa required"
                   for="form_tutor_tutorType"&gt;Type&lt;/label&gt;
  
              &lt;div class="col-lg-10"&gt;
                  &lt;select id="form_tutor_tutorType"
                       name="form_tutor[tutorType]"
                       class="form-control"&gt;
                      &lt;/select&gt;
              &lt;/div&gt;
          &lt;/div&gt;
  
          &lt;div class="form-group"&gt;
              &lt;div class="col-lg-offset-2 col-lg-10"&gt;
                  &lt;button type="submit"
                       id="form_tutor_save"
                       name="form_tutor[save]"
                       class="btn btn-default"&gt;Speichern&lt;/button&gt;
              &lt;/div&gt;
          &lt;/div&gt;&lt;input type="hidden"
               id="form_tutor__token"
               name="form_tutor[_token]"
               class="form-control"
               value="s6i6zPxJs7KU5CiEe8i6Ahg_ca8rc2t5CnSk5yAsUhk" /&gt;
      &lt;/div&gt;
  &lt;/form&gt;
  </code></pre>
  
  <p>The <code>form_tutor_user</code> is wrapped in a own form-group div. 
  I tried to overwrite the form_tutor_user_widget but this is one level to deep. (And only a quick fix, it should be globally applied to all form type - Classes)</p>
  
  <p>How can i change the theme so all custom types are not wrapped with the default form_row template?</p>
  
  <p>Or how do i know in twig when a "subform" is rendered?
  so i can decide to print the <code>&lt;div class="form-group"&gt;</code> when the child-node is not a subform, or skip it, if this is the case.</p>
  
  <p>TIA</p>