cache->getItem('list_promos')->isHit()) { return $this->render('productList.html.twig', ['listType' => 'promos']); } $products = Product::whereHas('currentPrice', fn(Builder $query) => $query->whereColumn('price', '<', 'productStandardPrice')) ->orderByDesc('starred') ->orderByDesc('created_by') ->with(['currentPrice']) ->get(); return $this->render('productList.html.twig', ['products' => $products, 'listType' => 'promos']); } }