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
CodePudding user response:
As mentioned here https://magento.stackexchange.com/a/361468/103851, it is possible using:
Mage::getResourceModel('eav/entity_attribute_collection')