This commit is contained in:
parent
5c86b54c51
commit
5d9db25d73
@ -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) {
|
||||
|
@ -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();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user