Controller/PermissionsGroupController.php
private function createDeleteRoleScopeForm(PermissionsGroup $permissionsGroup,
            RoleScope $roleScope)
    {
        return $this->createFormBuilder()
            ->setAction($this->generateUrl('admin_permissionsgroup_delete_role_scope', 
                    array('pgid' => $permissionsGroup->getId(), 'rsid' => $roleScope->getId())))
            ->setMethod('DELETE')
            ->add('submit', 'submit', array('label' => 'Delete'))
            ->getForm()
        ;
    }
private function createDeleteRoleScopeForm(PermissionsGroup $permissionsGroup,
            RoleScope $roleScope)
    {
        return $this->createFormBuilder()
            ->setAction($this->generateUrl('admin_permissionsgroup_delete_role_scope', 
                    array('pgid' => $permissionsGroup->getId(), 'rsid' => $roleScope->getId())))
            ->setMethod('DELETE')
            ->add('submit', 'submit', array('label' => 'Delete'))
            ->getForm()
        ;
    }
private function createDeleteRoleScopeForm ( PermissionsGroup $ permissionsGroup , RoleScope $ roleScope ) { return $ this -> createFormBuilder ( ) -> setAction ( $ this -> generateUrl ( 'admin_permissionsgroup_delete_role_scope' , array ( 'pgid' => $ permissionsGroup -> getId ( ) , 'rsid' => $ roleScope -> getId ( ) ) ) ) -> setMethod ( 'DELETE' ) -> add ( 'submit' , 'submit' , array ( 'label' => 'Delete' ) ) -> getForm ( ) ; }
Creates a form to delete a link to roleScope.

@param mixed $permissionsGroup The entity id

@return \Symfony\Component\Form\Form The form
Creates a form to delete a link to roleScope .