I'm trying to override in the local folder a module which is in the local folder also, but I don't know if it's possible. This is what I've done.
I've created /local/Mycompany/Modulename/Model/Model.php which i'd like to override the /local/Othercompany/Modulename/Model/Model.php
my model.php is:
class Mycompany_Modulename_Model_Model extends Othercompany_Modulename_Model_Model
{ ... }
and my config.xml
<global>
<models>
<othercompanymodulename>
<rewrite>
<model>Mycompany_Modulename_Model_Model</model>
</rewrite>
</othercompanymodulename>
</models>
The class is been instantiated whith Mage::getModel('othercompanymodulename/model')
My Mycompany_Mymodule.xml
<config>
<modules>
<Mycompany_Modulename>
<active>true</active>
<codePool>local</codePool>
<depend>
<Othercompany_Modulename/>
</depend>
</Mycompany_Modulename>
</modules>
But my module is ignored. Is possible to override in local folder a class located also in local folder? What I'm doing wrong?