| @@ 1250-1260 (lines=11) @@ | ||
| 1247 | * @param \Eccube\Entity\Category $Category |
|
| 1248 | * @return ProductCategory |
|
| 1249 | */ |
|
| 1250 | private function makeProductCategory($Product, $Category, $rank) |
|
| 1251 | { |
|
| 1252 | $ProductCategory = new ProductCategory(); |
|
| 1253 | $ProductCategory->setProduct($Product); |
|
| 1254 | $ProductCategory->setProductId($Product->getId()); |
|
| 1255 | $ProductCategory->setCategory($Category); |
|
| 1256 | $ProductCategory->setCategoryId($Category->getId()); |
|
| 1257 | $ProductCategory->setRank($rank); |
|
| 1258 | ||
| 1259 | return $ProductCategory; |
|
| 1260 | } |
|
| 1261 | } |
|
| 1262 | ||
| @@ 959-969 (lines=11) @@ | ||
| 956 | * @param \Eccube\Entity\Category $Category |
|
| 957 | * @return \Eccube\Entity\ProductCategory |
|
| 958 | */ |
|
| 959 | private function createProductCategory($Product, $Category, $count) |
|
| 960 | { |
|
| 961 | $ProductCategory = new \Eccube\Entity\ProductCategory(); |
|
| 962 | $ProductCategory->setProduct($Product); |
|
| 963 | $ProductCategory->setProductId($Product->getId()); |
|
| 964 | $ProductCategory->setCategory($Category); |
|
| 965 | $ProductCategory->setCategoryId($Category->getId()); |
|
| 966 | $ProductCategory->setRank($count); |
|
| 967 | ||
| 968 | return $ProductCategory; |
|
| 969 | } |
|
| 970 | } |
|
| 971 | ||