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