| @@ 1010-1019 (lines=10) @@ | ||
| 1007 | * |
|
| 1008 | * @return \Eccube\Entity\ProductCategory |
|
| 1009 | */ |
|
| 1010 | private function createProductCategory($Product, $Category, $count) |
|
| 1011 | { |
|
| 1012 | $ProductCategory = new ProductCategory(); |
|
| 1013 | $ProductCategory->setProduct($Product); |
|
| 1014 | $ProductCategory->setProductId($Product->getId()); |
|
| 1015 | $ProductCategory->setCategory($Category); |
|
| 1016 | $ProductCategory->setCategoryId($Category->getId()); |
|
| 1017 | ||
| 1018 | return $ProductCategory; |
|
| 1019 | } |
|
| 1020 | ||
| 1021 | /** |
|
| 1022 | * Bulk public action |
|
| @@ 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") |
|