ECCUBE ver 3.10です
以下のコードで,dtb_productのproduct_idで並び替えをしたいのですが、通常通りの表示で並び替えができません。
どこが間違っていますでしょうか?
よろしくお願いいたします。
Controllerの中身です。(省略しています)
$Products = $app['eccube.repository.product']->createQueryBuilder('p')
->innerJoin('p.ProductCategories', 'pc')
->innerJoin('p.ProductClasses', 'pclass')
->innerJoin('pclass.ProductStock' , 'ps')
->where('pc.category_id = 27')
->andWhere('ps.stock > 0')
->setMaxResults(12)
->setFirstResult(1)
->orderBy('p.id', 'DESC')
->getQuery()
->getResult();
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。