/** * Initialize collection select * * @return Mage_Tag_Model_Resource_Product_Collection */ protected function _initSelect() { parent::_initSelect(); $this->_joinFields(); $this->getSelect()->group('e.entity_id'); /* * Allow analytic function usage */ $this->_useAnalyticFunction = true; return $this; }
/** * init select * * @return Mage_Review_Model_Resource_Review_Product_Collection */ protected function _initSelect() { parent::_initSelect(); $this->_joinFields(); return $this; }
/** * Initialize collection select * */ protected function _initSelect() { parent::_initSelect(); $this->getSelect()->join(array('selection' => $this->_selectionTable), 'selection.product_id = e.entity_id', array('*')); }
/** * Init select * @return Mage_Catalog_Model_Resource_Product_Type_Configurable_Product_Collection */ protected function _initSelect() { parent::_initSelect(); $this->getSelect()->join(array('link_table' => $this->_linkTable), 'link_table.product_id = e.entity_id', array('parent_id')); return $this; }
/** * Init Select * @return Mage_Catalog_Model_Resource_Product_Collection */ protected function _initSelect() { parent::_initSelect(); $this->_joinReview(); return $this; }