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