Exemple #1
0
 /**
  * Return relation info about used products
  *
  * @return \Magento\Framework\DataObject Object with information data
  */
 public function getRelationInfo()
 {
     $info = new \Magento\Framework\DataObject();
     $info->setTable('catalog_product_bundle_selection')->setParentFieldName('parent_product_id')->setChildFieldName('product_id');
     return $info;
 }
Exemple #2
0
 /**
  * Return relation info about used products
  *
  * @return \Magento\Framework\DataObject Object with information data
  */
 public function getRelationInfo()
 {
     $info = new \Magento\Framework\DataObject();
     $info->setTable('catalog_product_link')->setParentFieldName('product_id')->setChildFieldName('linked_product_id')->setWhere('link_type_id=' . \Magento\GroupedProduct\Model\ResourceModel\Product\Link::LINK_TYPE_GROUPED);
     return $info;
 }