eZ\Publish\Core\Persistence\Legacy\User\Gateway::removeRoleAssignmentById PHP Méthode

removeRoleAssignmentById() abstract public méthode

Remove role from user or user group, by assignment ID.
abstract public removeRoleAssignmentById ( mixed $roleAssignmentId )
$roleAssignmentId mixed
    public abstract function removeRoleAssignmentById($roleAssignmentId);

Usage Example

 /**
  * Remove role from user or user group, by assignment ID.
  *
  * @param mixed $roleAssignmentId
  */
 public function removeRoleAssignmentById($roleAssignmentId)
 {
     try {
         return $this->innerGateway->removeRoleAssignmentById($roleAssignmentId);
     } catch (DBALException $e) {
         throw new RuntimeException('Database error', 0, $e);
     } catch (PDOException $e) {
         throw new RuntimeException('Database error', 0, $e);
     }
 }
All Usage Examples Of eZ\Publish\Core\Persistence\Legacy\User\Gateway::removeRoleAssignmentById