Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on Apr 29th, 2012  |  syntax: None  |  size: 0.39 KB  |  hits: 15  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. Magento - how to overwrite EAV resource classes?
  2. Mage_Eav_Model_Resource_Entity_Attribute
  3.        
  4. <global>
  5.     <models>
  6.         <eav_resource>
  7.             <rewrite>
  8.                 <entity_attribute>Your_Module_Model_Eav_Resource_Entity_Attribute</entity_attribute>
  9.             </rewrite>
  10.         </eav_resource>
  11.     </models>
  12. </global>
  13.        
  14. echo get_class(Mage::getResourceModel('eav/entity_attribute')