I try to load collection with specific attributes this way:

    $collection = $this->productCollectionFactory->create();

It adds to _selectAttributes field with these two attributes, but when I try to load items - nothing changed, all items have all fields... So, it's same as addAttributeToSelect('*')

What should i do to resolve this issue?


2 Answers 2


may be try $collection->setStoreId(2) (narrow collection to your store) or/and ->addAttributeToFilter('name', 'FOONAME')

 $collection = $this->_productCollectionFactory->create();
    ->columns(['entity_id', 'sku']);

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.