| @@ 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 | ||
| @@ 811-821 (lines=11) @@ | ||
| 808 | * @param \Eccube\Entity\Category $Category |
|
| 809 | * @return \Eccube\Entity\ProductCategory |
|
| 810 | */ |
|
| 811 | private function createProductCategory($Product, $Category, $count) |
|
| 812 | { |
|
| 813 | $ProductCategory = new \Eccube\Entity\ProductCategory(); |
|
| 814 | $ProductCategory->setProduct($Product); |
|
| 815 | $ProductCategory->setProductId($Product->getId()); |
|
| 816 | $ProductCategory->setCategory($Category); |
|
| 817 | $ProductCategory->setCategoryId($Category->getId()); |
|
| 818 | $ProductCategory->setRank($count); |
|
| 819 | ||
| 820 | return $ProductCategory; |
|
| 821 | } |
|
| 822 | } |
|
| 823 | ||