title: Overridden Model Entities not Executing
body: <p>I'm trying to override the Customer's model entities for Address and Customer. It's working in my development environment but I can't get it to run in production. They're both using Magento 1.6.0.0. </p>
  
  <p>There are two areas I might be getting wrong:</p>
  
  <ol>
  <li>It's possible that I haven't uploaded all of the required files but don't know what I've missed. I've tried FTP'ing the whole module directory so if there are additional files they must be from another part of the code.</li>
  <li>Missing data from/incorrect data in the database. This seems more likely but I'm not sure where to look (I set the data directly via PhpMyAdmin as opposed to using a Magento setup file for this - it's a custom Magento project so won't need to reproduce/replicate this anywhere else in the future.)</li>
  </ol>
  
  <p>Anyway, here's what I've got, in case I'm doing something wrong from a code level.</p>
  
  <p><strong>Overrides</strong></p>
  
  <pre><code>class Zac_Attack_Model_Entity_Address extends Mage_Customer_Model_Entity_Address
  {
      protected function _afterSave( Varien_Object $address )
      {
          // this method never gets called.
      }
  }
  
  class Zac_Attack_Model_Entity_Customer extends Mage_Customer_Model_Entity_Customer
  {
      protected function _saveAddresses( Varien_Object $address )
      {
          // this method never gets called.
      }
  }
  </code></pre>
  
  <p><strong>config.xml</strong></p>
  
  <pre><code>&lt;models&gt;
      &lt;customer_entity&gt;
          &lt;rewrite&gt;
              &lt;address&gt;Zac_Attack_Model_Entity_Address&lt;/address&gt;
              &lt;customer&gt;Zac_Attack_Model_Entity_Customer&lt;/customer&gt;
          &lt;/rewrite&gt;
      &lt;/customer_entity&gt;
  &lt;/models&gt;
  </code></pre>
  
  <p>The override is so that we can add third type of primary address to the customer addresses. The attribute is setup correctly in the database for the new address - if I manually set an address to be the 'default_custom' address it shows up in the customer details in both front- and back-end but without the model entity the system won't input the address. If I don't find what's I'm missing I could always move the logic to the various "Save" functions but I would prefer to keep to the approach already adopted by the Magento core code.</p>
  
  <p>Any ideas what I'm doing wrong here?</p>