Magento: how to override a model in a local module
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: