Pārlūkot izejas kodu

Correctif OrderShopRepository

master
Guillaume pirms 4 gadiem
vecāks
revīzija
0799548e28
1 mainītis faili ar 7 papildinājumiem un 1 dzēšanām
  1. +7
    -1
      ShopBundle/Repository/OrderShopRepository.php

+ 7
- 1
ShopBundle/Repository/OrderShopRepository.php Parādīt failu

@@ -33,7 +33,13 @@ class OrderShopRepository extends BaseRepository implements DefaultRepositoryInt
$query->leftJoin('e.orderStatusHistories', 'orderStatusHistories')
->andWhere('SIZE(e.orderStatusHistories) = 0') ;

return $query->getQuery()->getOneOrNullResult() ;
$results = $query->getQuery()->getResult() ;

if($results) {
return $results[0] ;
}
return null ;
}

public function findAllBy($params = [])

Notiek ielāde…
Atcelt
Saglabāt