eZ\Publish\Core\Persistence\Legacy\User\Gateway\ExceptionConversion::removeRole PHP Method

removeRole() public method

Remove role from user or user group.
public removeRole ( mixed $contentId, mixed $roleId )
$contentId mixed
$roleId mixed
    public function removeRole($contentId, $roleId)
    {
        try {
            return $this->innerGateway->removeRole($contentId, $roleId);
        } catch (DBALException $e) {
            throw new RuntimeException('Database error', 0, $e);
        } catch (PDOException $e) {
            throw new RuntimeException('Database error', 0, $e);
        }
    }