/** * Register indexing event before delete catalog eav attribute * * @return Mage_Catalog_Model_Resource_Eav_Attribute */ protected function _beforeDelete() { if ($this->_getResource()->isUsedBySuperProducts($this)) { Mage::throwException(Mage::helper('catalog')->__('This attribute is used in configurable products.')); } Mage::getSingleton('index/indexer')->logEvent( $this, self::ENTITY, Mage_Index_Model_Event::TYPE_DELETE ); return parent::_beforeDelete(); }
/** * Register indexing event before delete catalog eav attribute * * @return Mage_Catalog_Model_Resource_Eav_Attribute */ protected function _beforeDelete() { Mage::getSingleton('index/indexer')->logEvent($this, self::ENTITY, Mage_Index_Model_Event::TYPE_DELETE); return parent::_beforeDelete(); }