| @@ 983-993 (lines=11) @@ | ||
| 980 | * |
|
| 981 | * @return \Eccube\Entity\ProductCategory |
|
| 982 | */ |
|
| 983 | private function createProductCategory($Product, $Category, $count) |
|
| 984 | { |
|
| 985 | $ProductCategory = new ProductCategory(); |
|
| 986 | $ProductCategory->setProduct($Product); |
|
| 987 | $ProductCategory->setProductId($Product->getId()); |
|
| 988 | $ProductCategory->setCategory($Category); |
|
| 989 | $ProductCategory->setCategoryId($Category->getId()); |
|
| 990 | $ProductCategory->setSortNo($count); |
|
| 991 | ||
| 992 | return $ProductCategory; |
|
| 993 | } |
|
| 994 | ||
| 995 | /** |
|
| 996 | * Bulk public action |
|
| @@ 1343-1353 (lines=11) @@ | ||
| 1340 | * |
|
| 1341 | * @return ProductCategory |
|
| 1342 | */ |
|
| 1343 | private function makeProductCategory($Product, $Category, $sortNo) |
|
| 1344 | { |
|
| 1345 | $ProductCategory = new ProductCategory(); |
|
| 1346 | $ProductCategory->setProduct($Product); |
|
| 1347 | $ProductCategory->setProductId($Product->getId()); |
|
| 1348 | $ProductCategory->setCategory($Category); |
|
| 1349 | $ProductCategory->setCategoryId($Category->getId()); |
|
| 1350 | $ProductCategory->setSortNo($sortNo); |
|
| 1351 | ||
| 1352 | return $ProductCategory; |
|
| 1353 | } |
|
| 1354 | } |
|
| 1355 | ||