소스 검색

笛卡尔积

kphcdr 2 년 전
부모
커밋
d4a2628a29
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      app/Modules/Admin/Services/SpecService.php

+ 1 - 1
app/Modules/Admin/Services/SpecService.php

@@ -96,7 +96,7 @@ class SpecService extends BaseService
      */
     public function cartesian(array $specIdArr)
     {
-        $specS = Spec::whereIn("id", $specIdArr)->get();
+        $specS = Spec::with("attrs")->whereIn("id", $specIdArr)->get();
 
         $attrS = collect();
         $cartesianProduct = new CartesianProduct();