| @@ 1446-1456 (lines=11) @@ | ||
| 1443 | * |
|
| 1444 | * @return ProductCategory |
|
| 1445 | */ |
|
| 1446 | private function makeProductCategory($Product, $Category, $sortNo) |
|
| 1447 | { |
|
| 1448 | $ProductCategory = new ProductCategory(); |
|
| 1449 | $ProductCategory->setProduct($Product); |
|
| 1450 | $ProductCategory->setProductId($Product->getId()); |
|
| 1451 | $ProductCategory->setCategory($Category); |
|
| 1452 | $ProductCategory->setCategoryId($Category->getId()); |
|
| 1453 | $ProductCategory->setSortNo($sortNo); |
|
| 1454 | ||
| 1455 | return $ProductCategory; |
|
| 1456 | } |
|
| 1457 | } |
|
| 1458 | ||
| @@ 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 |
|