Skip to content

EAV attrubute load value from DB – low level code

During some tasks, I was not aware of exactly how Magento loads values for attributes that are available. for example, if we have loaded Product Model and attributes in $product->getData(). Which classes and methods are responsible for loading text attribute values?

I’m searching how Magento loads attribute values for MagentoCatalogImportExportModelExportProduct but cant figure it out. I ran debug over and over again. but, it’s a massive object-oriented relations code. Can anyone point to the place that is responsible for that? Xdebug points me to MagentoEavModelResourceModelEntityAttribute but the magic happens there and we have value :).

But, I want to know how it’s working now?

PS. happy for me that it was not needed for the task, but now I need to figure out how it work for myself.