@@ 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 |
@@ 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 |