title: Trying to override Magento core model resource
body: <p>I'm trying to override </p>
  
  <pre><code>Mage/Eav/Model/Resource/Entity/attribute.php
  </code></pre>
  
  <p>with this in config.xml:</p>
  
  <pre><code>...
  &lt;models&gt;
     ....
     &lt;eav_resource&gt;
        &lt;rewrite&gt;                   
           &lt;entity_attribute&gt;
                    Mymodule_Eav_Model_Resource_Entity_Attribute
           &lt;/entity_attribute&gt;
        &lt;/rewrite&gt;
     &lt;/eav_resource&gt;
  &lt;/models&gt;
  ...
  </code></pre>
  
  <p>But it doesn't seem to work. My file is at: </p>
  
  <pre><code>/app/code/local/Mymodule/Eav/Model/Resource/Entity/Attribute.php
  </code></pre>
  
  <p>and starts with:</p>
  
  <pre><code>class Mymodule_Eav_Model_Resource_Entity_Attribute 
           extends Mage_Core_Model_Resource_Db_Abstract
  {
    ...
  </code></pre>
  
  <p>Any ideas why is isn't working?</p>
  
  <p>Looks like it does work, but this is what's happening:</p>
  
  <pre><code>2013-11-19T15:07:15+00:00 DEBUG (7): construct Mymodule_Eav_Model_Resource_Entity_Attribute
  2013-11-19T15:07:15+00:00 DEBUG (7): construct Mage_Eav_Model_Resource_Entity_Attribute
  2013-11-19T15:07:19+00:00 DEBUG (7): construct Mage_Eav_Model_Resource_Entity_Attribute
  </code></pre>
  
  <p>so, when I save:
  <code>2013-11-19T15:09:09+00:00 DEBUG (7): Mage_Eav_Model_Resource_Entity_Attribute _saveOption</code> called.</p>
  
  <p>instead of: <code>Mymodule_Eav_Model_Resource_Entity_Attribute _saveOption()</code></p>