private function applyCollectedDqlConditions(array $group): void
    {
        if (!$this->dqlConditions) {
            return;
        }

        if ($group['conditionsLogic'] === 'AND') {
            $fieldsDql = $this->queryBuilder->expr()->andX(...$this->dqlConditions);
        } else {
            $fieldsDql = $this->queryBuilder->expr()->orX(...$this->dqlConditions);
        }

        if ($group['groupLogic'] === 'AND') {
            $this->queryBuilder->andWhere($fieldsDql);
        } else {
            $this->queryBuilder->orWhere($fieldsDql);
        }

        $this->dqlConditions = [];
    }
private function applyCollectedDqlConditions(array $group): void
    {
        if (!$this->dqlConditions) {
            return;
        }

        if ($group['conditionsLogic'] === 'AND') {
            $fieldsDql = $this->queryBuilder->expr()->andX(...$this->dqlConditions);
        } else {
            $fieldsDql = $this->queryBuilder->expr()->orX(...$this->dqlConditions);
        }

        if ($group['groupLogic'] === 'AND') {
            $this->queryBuilder->andWhere($fieldsDql);
        } else {
            $this->queryBuilder->orWhere($fieldsDql);
        }

        $this->dqlConditions = [];
    }
private function applyCollectedDqlConditions ( array $ group ) : void { if ( ! $ this -> dqlConditions ) { return ; } if ( $ group [ 'conditionsLogic' ] === 'AND' ) { $ fieldsDql = $ this -> queryBuilder -> expr ( ) -> andX ( ... $ this -> dqlConditions ) ; } else { $ fieldsDql = $ this -> queryBuilder -> expr ( ) -> orX ( ... $ this -> dqlConditions ) ; } if ( $ group [ 'groupLogic' ] === 'AND' ) { $ this -> queryBuilder -> andWhere ( $ fieldsDql ) ; } else { $ this -> queryBuilder -> orWhere ( $ fieldsDql ) ; } $ this -> dqlConditions = [ ] ; }
Apply collected DQL conditions on the query builder and reset them

@param array $group
Apply collected DQL conditions on the query builder and reset them