| @@ 1175-1185 (lines=11) @@ | ||
| 1172 | * @param \Eccube\Entity\Category $Category |
|
| 1173 | * @return ProductCategory |
|
| 1174 | */ |
|
| 1175 | private function makeProductCategory($Product, $Category, $rank) |
|
| 1176 | { |
|
| 1177 | $ProductCategory = new ProductCategory(); |
|
| 1178 | $ProductCategory->setProduct($Product); |
|
| 1179 | $ProductCategory->setProductId($Product->getId()); |
|
| 1180 | $ProductCategory->setCategory($Category); |
|
| 1181 | $ProductCategory->setCategoryId($Category->getId()); |
|
| 1182 | $ProductCategory->setRank($rank); |
|
| 1183 | ||
| 1184 | return $ProductCategory; |
|
| 1185 | } |
|
| 1186 | } |
|
| 1187 | ||
| @@ 856-866 (lines=11) @@ | ||
| 853 | * @param \Eccube\Entity\Category $Category |
|
| 854 | * @return \Eccube\Entity\ProductCategory |
|
| 855 | */ |
|
| 856 | private function createProductCategory($Product, $Category, $count) |
|
| 857 | { |
|
| 858 | $ProductCategory = new \Eccube\Entity\ProductCategory(); |
|
| 859 | $ProductCategory->setProduct($Product); |
|
| 860 | $ProductCategory->setProductId($Product->getId()); |
|
| 861 | $ProductCategory->setCategory($Category); |
|
| 862 | $ProductCategory->setCategoryId($Category->getId()); |
|
| 863 | $ProductCategory->setRank($count); |
|
| 864 | ||
| 865 | return $ProductCategory; |
|
| 866 | } |
|
| 867 | } |
|
| 868 | ||