| @@ 984-994 (lines=11) @@ | ||
| 981 | * |
|
| 982 | * @return \Eccube\Entity\ProductCategory |
|
| 983 | */ |
|
| 984 | private function createProductCategory($Product, $Category, $count) |
|
| 985 | { |
|
| 986 | $ProductCategory = new ProductCategory(); |
|
| 987 | $ProductCategory->setProduct($Product); |
|
| 988 | $ProductCategory->setProductId($Product->getId()); |
|
| 989 | $ProductCategory->setCategory($Category); |
|
| 990 | $ProductCategory->setCategoryId($Category->getId()); |
|
| 991 | $ProductCategory->setSortNo($count); |
|
| 992 | ||
| 993 | return $ProductCategory; |
|
| 994 | } |
|
| 995 | ||
| 996 | /** |
|
| 997 | * Bulk public action |
|
| @@ 1322-1332 (lines=11) @@ | ||
| 1319 | * |
|
| 1320 | * @return ProductCategory |
|
| 1321 | */ |
|
| 1322 | private function makeProductCategory($Product, $Category, $sortNo) |
|
| 1323 | { |
|
| 1324 | $ProductCategory = new ProductCategory(); |
|
| 1325 | $ProductCategory->setProduct($Product); |
|
| 1326 | $ProductCategory->setProductId($Product->getId()); |
|
| 1327 | $ProductCategory->setCategory($Category); |
|
| 1328 | $ProductCategory->setCategoryId($Category->getId()); |
|
| 1329 | $ProductCategory->setSortNo($sortNo); |
|
| 1330 | ||
| 1331 | return $ProductCategory; |
|
| 1332 | } |
|
| 1333 | } |
|
| 1334 | ||