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

This commit is contained in:
Marko 2023-12-14 14:27:19 +01:00
parent 5c86b54c51
commit 5d9db25d73
No known key found for this signature in database
2 changed files with 2 additions and 5 deletions

View File

@ -64,9 +64,7 @@ class Jtl
$data = array();
$products = $this->productRepository->findById($prodIds);
foreach ($warehousesName as $wn) {
$warehouse = $this->warehouseRepository->findByWarehouseByName($wn);
}
$warehouse = $this->warehouseRepository->findByWarehouseByName($warehousesName);
if ($warehouse) {
foreach ($warehouse as $w) {

View File

@ -49,9 +49,8 @@ class WarehouseRepository extends ServiceEntityRepository
public function findByWarehouseByName($value): array
{
return $this->createQueryBuilder('w')
->andWhere('w.name = :val')
->andWhere('w.name in (:val)')
->setParameter('val', $value)
->orderBy('w.id', 'ASC')
->getQuery()
->getResult();
}