src/Sulu/Component/SmartContent/Orm/DataProviderRepositoryTrait.php
private function appendRelation(QueryBuilder $queryBuilder, $relation, $values, $operator, $alias)
    {
        switch ($operator) {
            case 'or':
                return $this->appendRelationOr($queryBuilder, $relation, $values, $alias);
            case 'and':
                return $this->appendRelationAnd($queryBuilder, $relation, $values, $alias);
        }

        return [];
    }
private function appendRelation(QueryBuilder $queryBuilder, $relation, $values, $operator, $alias)
    {
        switch ($operator) {
            case 'or':
                return $this->appendRelationOr($queryBuilder, $relation, $values, $alias);
            case 'and':
                return $this->appendRelationAnd($queryBuilder, $relation, $values, $alias);
        }

        return [];
    }
private function appendRelation ( QueryBuilder $ queryBuilder , $ relation , $ values , $ operator , $ alias ) { switch ( $ operator ) { case 'or' : return $ this -> appendRelationOr ( $ queryBuilder , $ relation , $ values , $ alias ) ; case 'and' : return $ this -> appendRelationAnd ( $ queryBuilder , $ relation , $ values , $ alias ) ; } return [ ] ; }
Append tags to query builder with given operator.

@param QueryBuilder $queryBuilder
@param string $relation
@param int[] $values
@param string $operator "and" or "or"
@param string $alias

@return array parameter for the query
Append tags to query builder with given operator .