increase speed

This commit is contained in:
Marko
2024-03-14 13:16:17 +01:00
parent 23598667bb
commit 0834cfe456

View File

@@ -50,7 +50,7 @@ class ProductRepository extends ServiceEntityRepository
/** /**
* @return Product[] Returns an array of Product objects * @return Product[] Returns an array of Product objects
*/ */
public function findById(int $value): array public function findById($value): array
{ {
return $this->createQueryBuilder('p') return $this->createQueryBuilder('p')
->andWhere('p.id IN (:val)') ->andWhere('p.id IN (:val)')