gt example

case $operator === Condition::OPERATOR_LT:
                $query->andWhere($query->expr()->lt($field$boundParamName));
                $query->setParameter($boundParamName$value);
                break;

            case $operator === Condition::OPERATOR_LTE:
                $query->andWhere($query->expr()->lte($field$boundParamName));
                $query->setParameter($boundParamName$value);
                break;

            case $operator === Condition::OPERATOR_GT:
                $query->andWhere($query->expr()->gt($field$boundParamName));
                $query->setParameter($boundParamName$value);
                break;

            case $operator === Condition::OPERATOR_GTE:
                $query->andWhere($query->expr()->gte($field$boundParamName));
                $query->setParameter($boundParamName$value);
                break;

            case $operator === Condition::OPERATOR_NOT_IN:
                $query->andWhere($query->expr()->notIn($field$boundParamName));
                $query->setParameter(
                    

        if ($shopId === 1 || $shopId === null) {
            return true;
        }

        $queryBuilder = $this->connection->createQueryBuilder();

        return $queryBuilder
            ->select('1')
            ->from('s_core_shops')
            ->andWhere($queryBuilder->expr()->eq('id', ':id'))
            ->andWhere($queryBuilder->expr()->gt('`default`', 0))
            ->setParameter('id', $shopId)
            ->execute()->fetchColumn() !== false;
    }
}
Home | Imprint | This part of the site doesn't use cookies.