| @@ 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 | ||
| @@ 797-807 (lines=11) @@ | ||
| 794 | * @param \Eccube\Entity\Category $Category |
|
| 795 | * @return \Eccube\Entity\ProductCategory |
|
| 796 | */ |
|
| 797 | private function createProductCategory($Product, $Category, $count) |
|
| 798 | { |
|
| 799 | $ProductCategory = new \Eccube\Entity\ProductCategory(); |
|
| 800 | $ProductCategory->setProduct($Product); |
|
| 801 | $ProductCategory->setProductId($Product->getId()); |
|
| 802 | $ProductCategory->setCategory($Category); |
|
| 803 | $ProductCategory->setCategoryId($Category->getId()); |
|
| 804 | $ProductCategory->setRank($count); |
|
| 805 | ||
| 806 | return $ProductCategory; |
|
| 807 | } |
|
| 808 | } |
|
| 809 | ||