示例#1
0
 /**
  * Initialize entity model
  */
 protected function _construct()
 {
     parent::_construct();
     $this->_entityResource = Mage::getResourceSingleton('catalog/product');
 }
示例#2
0
文件: Link.php 项目: nemphys/magento2
 /**
  * Initialize entity model
  */
 protected function _construct()
 {
     parent::_construct();
     $this->_entityResource = Mage::getResourceSingleton('Mage_Catalog_Model_Resource_Category');
 }