bug fix in commodity and persons

This commit is contained in:
Hesabix 2024-05-06 16:17:35 +00:00
parent 3346a98624
commit d5b42b598f

View file

@ -61,7 +61,7 @@ class CommodityRepository extends ServiceEntityRepository
public function searchByName(Business $bid,string $search,int $maxResults = 10): array
{
return $this->createQueryBuilder('p')
->andWhere('p.bid = :val')
->where('p.bid = :val')
->andWhere("p.name LIKE :search")
->setParameter('val', $bid)
->setParameter('search', '%' . $search . '%')