| @@ 1164-1174 (lines=11) @@ | ||
| 1161 | * @param \Eccube\Entity\Category $Category |
|
| 1162 | * @return ProductCategory |
|
| 1163 | */ |
|
| 1164 | private function makeProductCategory($Product, $Category, $rank) |
|
| 1165 | { |
|
| 1166 | $ProductCategory = new ProductCategory(); |
|
| 1167 | $ProductCategory->setProduct($Product); |
|
| 1168 | $ProductCategory->setProductId($Product->getId()); |
|
| 1169 | $ProductCategory->setCategory($Category); |
|
| 1170 | $ProductCategory->setCategoryId($Category->getId()); |
|
| 1171 | $ProductCategory->setRank($rank); |
|
| 1172 | ||
| 1173 | return $ProductCategory; |
|
| 1174 | } |
|
| 1175 | } |
|
| 1176 | ||
| @@ 829-839 (lines=11) @@ | ||
| 826 | * @param \Eccube\Entity\Category $Category |
|
| 827 | * @return \Eccube\Entity\ProductCategory |
|
| 828 | */ |
|
| 829 | private function createProductCategory($Product, $Category, $count) |
|
| 830 | { |
|
| 831 | $ProductCategory = new \Eccube\Entity\ProductCategory(); |
|
| 832 | $ProductCategory->setProduct($Product); |
|
| 833 | $ProductCategory->setProductId($Product->getId()); |
|
| 834 | $ProductCategory->setCategory($Category); |
|
| 835 | $ProductCategory->setCategoryId($Category->getId()); |
|
| 836 | $ProductCategory->setRank($count); |
|
| 837 | ||
| 838 | return $ProductCategory; |
|
| 839 | } |
|
| 840 | } |
|
| 841 | ||