add fixed export
Some checks failed
continuous-integration/drone/push Build is failing

This commit is contained in:
Marko
2023-12-13 14:23:45 +01:00
parent c6bc1776bd
commit 047db97928
4 changed files with 26 additions and 26 deletions

View File

@@ -45,20 +45,17 @@ class ProductRepository extends ServiceEntityRepository
}
}
// /**
// * @return Product[] Returns an array of Product objects
// */
// public function findByExampleField($value): array
// {
// return $this->createQueryBuilder('p')
// ->andWhere('p.exampleField = :val')
// ->setParameter('val', $value)
// ->orderBy('p.id', 'ASC')
// ->setMaxResults(10)
// ->getQuery()
// ->getResult()
// ;
// }
/**
* @return Product[] Returns an array of Product objects
*/
public function findById($value): array
{
return $this->createQueryBuilder('p')
->andWhere('p.id IN (:val)')
->setParameter('val', $value)
->getQuery()
->getResult();
}
// public function findOneBySomeField($value): ?Product
// {