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

removePolicy() public method

Removes a policy from a role.
public removePolicy ( mixed $policyId )
$policyId mixed
    public function removePolicy($policyId)
    {
        try {
            return $this->innerGateway->removePolicy($policyId);
        } catch (DBALException $e) {
            throw new RuntimeException('Database error', 0, $e);
        } catch (PDOException $e) {
            throw new RuntimeException('Database error', 0, $e);
        }
    }