| @@ 1522-1531 (lines=10) @@ | ||
| 1519 | * |
|
| 1520 | * @return ProductCategory |
|
| 1521 | */ |
|
| 1522 | private function makeProductCategory($Product, $Category, $sortNo) |
|
| 1523 | { |
|
| 1524 | $ProductCategory = new ProductCategory(); |
|
| 1525 | $ProductCategory->setProduct($Product); |
|
| 1526 | $ProductCategory->setProductId($Product->getId()); |
|
| 1527 | $ProductCategory->setCategory($Category); |
|
| 1528 | $ProductCategory->setCategoryId($Category->getId()); |
|
| 1529 | ||
| 1530 | return $ProductCategory; |
|
| 1531 | } |
|
| 1532 | } |
|
| 1533 | ||
| @@ 1061-1070 (lines=10) @@ | ||
| 1058 | * |
|
| 1059 | * @return \Eccube\Entity\ProductCategory |
|
| 1060 | */ |
|
| 1061 | private function createProductCategory($Product, $Category, $count) |
|
| 1062 | { |
|
| 1063 | $ProductCategory = new ProductCategory(); |
|
| 1064 | $ProductCategory->setProduct($Product); |
|
| 1065 | $ProductCategory->setProductId($Product->getId()); |
|
| 1066 | $ProductCategory->setCategory($Category); |
|
| 1067 | $ProductCategory->setCategoryId($Category->getId()); |
|
| 1068 | ||
| 1069 | return $ProductCategory; |
|
| 1070 | } |
|
| 1071 | ||
| 1072 | /** |
|
| 1073 | * Bulk public action |
|