@@ 1003-1012 (lines=10) @@ | ||
1000 | * |
|
1001 | * @return \Eccube\Entity\ProductCategory |
|
1002 | */ |
|
1003 | private function createProductCategory($Product, $Category, $count) |
|
1004 | { |
|
1005 | $ProductCategory = new ProductCategory(); |
|
1006 | $ProductCategory->setProduct($Product); |
|
1007 | $ProductCategory->setProductId($Product->getId()); |
|
1008 | $ProductCategory->setCategory($Category); |
|
1009 | $ProductCategory->setCategoryId($Category->getId()); |
|
1010 | ||
1011 | return $ProductCategory; |
|
1012 | } |
|
1013 | ||
1014 | /** |
|
1015 | * Bulk public action |
@@ 1403-1412 (lines=10) @@ | ||
1400 | * |
|
1401 | * @return ProductCategory |
|
1402 | */ |
|
1403 | private function makeProductCategory($Product, $Category, $sortNo) |
|
1404 | { |
|
1405 | $ProductCategory = new ProductCategory(); |
|
1406 | $ProductCategory->setProduct($Product); |
|
1407 | $ProductCategory->setProductId($Product->getId()); |
|
1408 | $ProductCategory->setCategory($Category); |
|
1409 | $ProductCategory->setCategoryId($Category->getId()); |
|
1410 | ||
1411 | return $ProductCategory; |
|
1412 | } |
|
1413 | } |
|
1414 |