private function createCreateForm(UserGroup $entity)
    {
        $options = array ('action' => $this->generateUrl('admin_usergroup_create'),
                          'method' => 'POST'
                         );

        $form = $this->createForm(new UserGroupType(), $entity, $options);

        return $form;
    }
private function createCreateForm(UserGroup $entity)
    {
        $options = array ('action' => $this->generateUrl('admin_usergroup_create'),
                          'method' => 'POST'
                         );

        $form = $this->createForm(new UserGroupType(), $entity, $options);

        return $form;
    }
private function createCreateForm ( UserGroup $ entity ) { $ options = array ( 'action' => $ this -> generateUrl ( 'admin_usergroup_create' ) , 'method' => 'POST' ) ; $ form = $ this -> createForm ( new UserGroupType ( ) , $ entity , $ options ) ; return $ form ; }
Creates a form to create a UserGroup entity.

@param UserGroup $entity The entity

@return \Symfony\Component\Form\Form The form
Creates a form to create a UserGroup entity .