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