Product Collection Methods: addFieldToSelect() vs. addAttributeSelect()

What is the difference between ->addFieldToSelect('name') and ->addAttributeToSelect('name')?

addAttributeToSelect() is used to select EAV collections. (like https://devdocs.magento.com/guides/v2.3/extension-dev-guide/attributes.html#customer-eav-attribute)

addFieldToSelect() is used to select Non-EAV collections.

Leave a comment

Your email address will not be published. Required fields are marked *