Example #1
0
 /**
  * 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;
 }
Example #2
0
 /**
  * init select
  *
  * @return Mage_Review_Model_Resource_Review_Product_Collection
  */
 protected function _initSelect()
 {
     parent::_initSelect();
     $this->_joinFields();
     return $this;
 }
Example #3
0
 /**
  * Initialize collection select
  *
  */
 protected function _initSelect()
 {
     parent::_initSelect();
     $this->getSelect()->join(array('selection' => $this->_selectionTable), 'selection.product_id = e.entity_id', array('*'));
 }
Example #4
0
 /**
  * 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;
 }
Example #5
0
 /**
  * Init Select
  * @return Mage_Catalog_Model_Resource_Product_Collection
  */
 protected function _initSelect()
 {
     parent::_initSelect();
     $this->_joinReview();
     return $this;
 }