increase speed
This commit is contained in:
@@ -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)')
|
||||||
|
|||||||
Reference in New Issue
Block a user