I need to override Mage_Tag_Model_Resource_Tag_Relation
for a site I'm working on.
I have already created my class that extends Mage_Tag_Model_Resource_Tag_Relation
:
class Web_Core_Model_Tag_Resource_Tag_Relation extends Mage_Tag_Model_Resource_Tag_Relation
{
public function loadByTagCustomer($model)
{
[...]
}
}
And placed that in the file app/code/local/Web/Core/Model/Tag/Resource/Tag/Relation.php
In the module's config.xml (which is activated, since there are other parts of the module that are working, I added:
<global>
<models>
<core>
<rewrite>
<mage_tag_model_resource_tag_relation>
Web_Core_Model_Tag_Resource_Tag_Relation
</mage_tag_model_resource_tag_relation>
</rewrite>
</core>
</models>
</global>
I'm guessing this is wrong, since it is not working... How should I declare the overriding in my config.xml? Am I in the right track?