public function editAction(Role $role = null)
    {
        $this->isAllowed('BUSINESS_MANAGE_ROLE');

        if (!$role) {
            throw $this->createNotFoundException('Unable to find Role entity.');
        }

        $editForm = $this->createEditForm($role);

        return $this->render('CanalTPSamEcoreSecurityBundle:Role:edit.html.twig', array(
            'entity'      => $role,
            'edit_form'   => $editForm->createView()
        ));
    }
public function editAction(Role $role = null)
    {
        $this->isAllowed('BUSINESS_MANAGE_ROLE');

        if (!$role) {
            throw $this->createNotFoundException('Unable to find Role entity.');
        }

        $editForm = $this->createEditForm($role);

        return $this->render('CanalTPSamEcoreSecurityBundle:Role:edit.html.twig', array(
            'entity'      => $role,
            'edit_form'   => $editForm->createView()
        ));
    }
public function editAction ( Role $ role = null ) { $ this -> isAllowed ( 'BUSINESS_MANAGE_ROLE' ) ; if ( ! $ role ) { throw $ this -> createNotFoundException ( 'Unable to find Role entity.' ) ; } $ editForm = $ this -> createEditForm ( $ role ) ; return $ this -> render ( 'CanalTPSamEcoreSecurityBundle:Role:edit.html.twig' , array ( 'entity' => $ role , 'edit_form' => $ editForm -> createView ( ) ) ) ; }
Displays a form to edit an existing Role entity.
Displays a form to edit an existing Role entity .