public function deleteGroupAssignmentsForType($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->prepare()->execute();
    }
public function deleteGroupAssignmentsForType($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->prepare()->execute();
    }
public function deleteGroupAssignmentsForType ( $ 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 -> prepare ( ) -> execute ( ) ; }
Deletes all group assignments for a Type.

@param mixed $typeId
@param int $status
Deletes all group assignments for a Type .