/** * Declare link model and initialize type attributes join * * @param Mage_Catalog_Model_Product_Link $linkModel * @return Mage_Catalog_Model_Resource_Eav_Mysql4_Product_Link_Product_Collection */ public function setLinkModel($linkModel) { $this->_linkModel = $linkModel; if ($linkModel->getLinkTypeId()) { $this->_linkTypeId = $linkModel->getLinkTypeId(); } return $this; }
/** * Declare link model and initialize type attributes join * * @param Mage_Catalog_Model_Product_Link $linkModel * @return Mage_Catalog_Model_Resource_Product_Link_Product_Collection */ public function setLinkModel(Mage_Catalog_Model_Product_Link $linkModel) { $this->_linkModel = $linkModel; if ($linkModel->getLinkTypeId()) { $this->_linkTypeId = $linkModel->getLinkTypeId(); } return $this; }