| @@ 799-809 (lines=11) @@ | ||
| 796 | * @param \Eccube\Entity\Category $Category |
|
| 797 | * @return \Eccube\Entity\ProductCategory |
|
| 798 | */ |
|
| 799 | private function createProductCategory($Product, $Category, $count) |
|
| 800 | { |
|
| 801 | $ProductCategory = new \Eccube\Entity\ProductCategory(); |
|
| 802 | $ProductCategory->setProduct($Product); |
|
| 803 | $ProductCategory->setProductId($Product->getId()); |
|
| 804 | $ProductCategory->setCategory($Category); |
|
| 805 | $ProductCategory->setCategoryId($Category->getId()); |
|
| 806 | $ProductCategory->setRank($count); |
|
| 807 | ||
| 808 | return $ProductCategory; |
|
| 809 | } |
|
| 810 | } |
|
| 811 | ||
| @@ 1186-1196 (lines=11) @@ | ||
| 1183 | * @param \Eccube\Entity\Category $Category |
|
| 1184 | * @return ProductCategory |
|
| 1185 | */ |
|
| 1186 | private function makeProductCategory($Product, $Category, $rank) |
|
| 1187 | { |
|
| 1188 | $ProductCategory = new ProductCategory(); |
|
| 1189 | $ProductCategory->setProduct($Product); |
|
| 1190 | $ProductCategory->setProductId($Product->getId()); |
|
| 1191 | $ProductCategory->setCategory($Category); |
|
| 1192 | $ProductCategory->setCategoryId($Category->getId()); |
|
| 1193 | $ProductCategory->setRank($rank); |
|
| 1194 | ||
| 1195 | return $ProductCategory; |
|
| 1196 | } |
|
| 1197 | } |
|
| 1198 | ||