瀏覽代碼

Correctif OrderShopRepository

master
Guillaume 4 年之前
父節點
當前提交
0799548e28
共有 1 個檔案被更改,包括 7 行新增1 行删除
  1. +7
    -1
      ShopBundle/Repository/OrderShopRepository.php

+ 7
- 1
ShopBundle/Repository/OrderShopRepository.php 查看文件

@@ -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…
取消
儲存