/** * Standard resource collection initalization * * @param string $model * @return Mage_Catalog_Model_Resource_Eav_Mysql4_Product_Collection */ protected function _init($model, $entityModel = null) { if ($this->isEnabledFlat()) { $entityModel = 'catalog/product_flat'; } return parent::_init($model, $entityModel); }