@@ -105,10 +105,10 @@ |
||
105 | 105 | if (isset($sorting['price'])) { |
106 | 106 | // Another hack, the subquery to get the first position variant |
107 | 107 | $subQuery = $this->createQueryBuilder('m') |
108 | - ->select('min(v.position)') |
|
109 | - ->innerJoin('m.variants', 'v') |
|
110 | - ->andWhere('m.id = :product_id') |
|
111 | - ; |
|
108 | + ->select('min(v.position)') |
|
109 | + ->innerJoin('m.variants', 'v') |
|
110 | + ->andWhere('m.id = :product_id') |
|
111 | + ; |
|
112 | 112 | |
113 | 113 | $queryBuilder |
114 | 114 | ->addSelect('variant') |