lt example


    }

    protected function isLayerResponsible(?int $shopId): bool
    {
        $queryBuilder = $this->connection->createQueryBuilder();

        return $queryBuilder->select('1')
                ->from('s_core_shops')
                ->andWhere($queryBuilder->expr()->eq('id', ':id'))
                ->andWhere($queryBuilder->expr()->isNull('main_id'))
                ->andWhere($queryBuilder->expr()->lt('`default`', 1))
                ->setParameter('id', $shopId)
                ->execute()->fetchColumn() !== false
        ;
    }
}
case $operator === Condition::OPERATOR_NEQ:
                if ($value === null) {
                    $query->andWhere($query->expr()->isNotNull($field));
                    break;
                }
                $query->andWhere($query->expr()->neq($field$boundParamName));
                $query->setParameter($boundParamName$value);
                break;

            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);
                
Home | Imprint | This part of the site doesn't use cookies.