title: Magento override Customer Resource model
body: <p>i try to overridde </p>
  
  <pre><code>app\code\core\Mage\Customer\Model\Resource\Customer.php
  </code></pre>
  
  <p>with this xml: </p>
  
  <pre><code>&lt;models&gt; 
      &lt;customer_resource&gt;
          &lt;rewrite&gt;
              &lt;customer&gt;My_Company_Model_Resource_Customer&lt;/customer&gt;
          &lt;/rewrite&gt;
      &lt;/customer_resource&gt;     
  &lt;/models&gt;
  </code></pre>
  
  <p>but i get </p>
  
  <pre><code>Mage registry key "_resource_singleton/customer/customer" already exists
  </code></pre>
  
  <p>and with</p>
  
  <pre><code>        &lt;customer&gt;
              &lt;rewrite&gt;
                  &lt;customer_resource&gt;My_Company_Model_Resource_Customer&lt;/customer_resource&gt;
              &lt;/rewrite&gt;
          &lt;/customer&gt;
  </code></pre>
  
  <p>or</p>
  
  <pre><code>    &lt;models&gt;
          &lt;customer&gt;
              &lt;rewrite&gt;
                  &lt;resource_customer&gt;My_Company_Model_Resource_Customer&lt;/resource_customer&gt;
              &lt;/rewrite&gt;
          &lt;/customer&gt;
      &lt;/models&gt;
  </code></pre>
  
  <p>nothing happens</p>