eZ\Publish\Core\Persistence\Legacy\Content\Type\Gateway\DoctrineDatabase::deleteGroupAssignment PHP Method

deleteGroupAssignment() public method

Deletes a group assignments for a Type.
public deleteGroupAssignment ( mixed $groupId, mixed $typeId, integer $status )
$groupId mixed
$typeId mixed
$status integer
    public function deleteGroupAssignment($groupId, $typeId, $status)
    {
        $q = $this->dbHandler->createDeleteQuery();
        $q->deleteFrom($this->dbHandler->quoteTable('ezcontentclass_classgroup'))->where($q->expr->lAnd($q->expr->eq($this->dbHandler->quoteColumn('contentclass_id'), $q->bindValue($typeId, null, \PDO::PARAM_INT)), $q->expr->eq($this->dbHandler->quoteColumn('contentclass_version'), $q->bindValue($status, null, \PDO::PARAM_INT)), $q->expr->eq($this->dbHandler->quoteColumn('group_id'), $q->bindValue($groupId, null, \PDO::PARAM_INT))));
        $q->prepare()->execute();
    }