I'm trying to get a collection from the table eav/attribute (where product's attributes are present along with customer's, category's, etc).

I already tried to retrieve it like a normal model collection:

$entitiesAttributes = Mage::getModel('eav/attribute')->getCollection();

But I get the following error:

Cannot instantiate abstract class Mage_Eav_Model_Attribute

Because, of course, the class Mage_Eav_Model_Attribute is abstract. Is there a way to do it with collections?

Or I should do it directly with SQL?

SELECT * FROM `eav_attribute` ...

Thanks in advance


1 Answer 1


Think you can use Mage::getResourceModel('eav/entity_attribute_collection')

  • That is exactly what I was looking for! Thanks a lot :) Nov 5, 2022 at 17:22

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.