| @@ 1582-1591 (lines=10) @@ | ||
| 1579 | * |
|
| 1580 | * @return ProductCategory |
|
| 1581 | */ |
|
| 1582 | private function makeProductCategory($Product, $Category, $sortNo) |
|
| 1583 | { |
|
| 1584 | $ProductCategory = new ProductCategory(); |
|
| 1585 | $ProductCategory->setProduct($Product); |
|
| 1586 | $ProductCategory->setProductId($Product->getId()); |
|
| 1587 | $ProductCategory->setCategory($Category); |
|
| 1588 | $ProductCategory->setCategoryId($Category->getId()); |
|
| 1589 | ||
| 1590 | return $ProductCategory; |
|
| 1591 | } |
|
| 1592 | ||
| 1593 | /** |
|
| 1594 | * @Route("/%eccube_admin_route%/product/csv_split", name="admin_product_csv_split") |
|
| @@ 1067-1076 (lines=10) @@ | ||
| 1064 | * |
|
| 1065 | * @return \Eccube\Entity\ProductCategory |
|
| 1066 | */ |
|
| 1067 | private function createProductCategory($Product, $Category, $count) |
|
| 1068 | { |
|
| 1069 | $ProductCategory = new ProductCategory(); |
|
| 1070 | $ProductCategory->setProduct($Product); |
|
| 1071 | $ProductCategory->setProductId($Product->getId()); |
|
| 1072 | $ProductCategory->setCategory($Category); |
|
| 1073 | $ProductCategory->setCategoryId($Category->getId()); |
|
| 1074 | ||
| 1075 | return $ProductCategory; |
|
| 1076 | } |
|
| 1077 | ||
| 1078 | /** |
|
| 1079 | * Bulk public action |
|