code: private function createCreateForm(CustomFieldsGroup $entity)
      {
          $form = $this->createForm('custom_fields_group', $entity, array(
              'action' => $this->generateUrl('customfieldsgroup_create'),
              'method' => 'POST',
          ));
  
          $form->add('submit', 'submit', array('label' => 'Create'));
  
          return $form;
      }
docs: Creates a form to create a CustomFieldsGroup entity.
  
  @param CustomFieldsGroup $entity The entity
  
  @return \Symfony\Component\Form\Form The form