@@ -34,9 +34,7 @@ class ProductCategoryRepository extends BaseRepository implements DefaultReposit | |||
->andWhere('e.parent is NULL') | |||
->andWhere('e.status = 1') | |||
->orderBy('e.position', 'ASC') | |||
->getQuery() | |||
->getResult(); | |||
->orderBy('e.position', 'ASC'); | |||
return $query->getQuery()->getResult(); | |||