@@ 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 |
@@ 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 |