Example #1
0
 /**
  * Init select
  * @return $this|\Magento\ConfigurableProduct\Model\ResourceModel\Product\Type\Configurable\Product\Collection
  */
 protected function _initSelect()
 {
     parent::_initSelect();
     $this->getSelect()->join(['link_table' => $this->_linkTable], 'link_table.product_id = e.entity_id', ['parent_id']);
     return $this;
 }
Example #2
0
 /**
  * Init Select
  *
  * @return \Magento\Catalog\Model\ResourceModel\Product\Collection
  */
 protected function _initSelect()
 {
     parent::_initSelect();
     $this->_joinReview();
     return $this;
 }
Example #3
0
 /**
  * Initialize collection select
  *
  * @return $this|void
  */
 protected function _initSelect()
 {
     parent::_initSelect();
     $this->getSelect()->join(['selection' => $this->_selectionTable], 'selection.product_id = e.entity_id', ['*']);
 }
 /**
  * Initialize select
  *
  * @return $this
  */
 protected function _initSelect()
 {
     parent::_initSelect();
     $this->_joinFields();
     return $this;
 }