/** * 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; }
/** * Init Select * * @return \Magento\Catalog\Model\ResourceModel\Product\Collection */ protected function _initSelect() { parent::_initSelect(); $this->_joinReview(); return $this; }
/** * 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; }