code: private function createEditForm(CustomFieldsGroup $entity)
      {
          $form = $this->createForm('custom_fields_group', $entity, array(
              'action' => $this->generateUrl('customfieldsgroup_update', array('id' => $entity->getId())),
              'method' => 'PUT',
          ));
          $form->add('submit', 'submit', array('label' => 'Update'));
  
          return $form;
      }
docs: Creates a form to edit a CustomFieldsGroup entity.
  
  @param CustomFieldsGroup $entity The entity
  
  @return \Symfony\Component\Form\Form The form