26 private $productRelation;
37 $this->productRelation = $productRelation
51 $this->resource->getConnection()->insertOnDuplicate(
52 $this->resource->getTableName(
'catalog_product_bundle_option'),
72 if (!empty($optionValues)) {
73 $this->resource->getConnection()->insertOnDuplicate(
74 $this->resource->getTableName(
'catalog_product_bundle_option_value'),
90 if (!empty($selections)) {
91 $this->resource->getConnection()->insertOnDuplicate(
92 $this->resource->getTableName(
'catalog_product_bundle_selection'),
99 'selection_price_type',
100 'selection_price_value',
102 'selection_can_change_qty' 118 $this->productRelation->processRelations($parentId, $childIds);
saveSelections(array $selections)
__construct(\Magento\Framework\App\ResourceConnection $resource, Relation $productRelation=null)
saveOptions(array $options)
saveProductRelations($parentId, $childIds)
saveOptionValues(array $optionValues)