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

removePolicy() public method

Removes a policy from a role.
public removePolicy ( mixed $policyId )
$policyId mixed
    public function removePolicy($policyId)
    {
        $this->removePolicyLimitations($policyId);
        $query = $this->handler->createDeleteQuery();
        $query->deleteFrom($this->handler->quoteTable('ezpolicy'))->where($query->expr->eq($this->handler->quoteColumn('id'), $query->bindValue($policyId, null, \PDO::PARAM_INT)));
        $query->prepare()->execute();
    }