Browse Source

Correctif OrderShopRepository

master
Guillaume 4 years ago
parent
commit
0799548e28
1 changed files with 7 additions and 1 deletions
  1. +7
    -1
      ShopBundle/Repository/OrderShopRepository.php

+ 7
- 1
ShopBundle/Repository/OrderShopRepository.php View File

@@ -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 = [])

Loading…
Cancel
Save