문제

Exception #0 (Magento\Framework\Exception\LocalizedException): The "id" attribute name is invalid. Reset the name and try again. Here is my code

...
\Magento\Catalog\Model\ResourceModel\Product\CollectionFactory $productCollectionFactory, 
...

$collection = $this->_productCollectionFactory->create();
$collection->addAttributeToSelect('*')->addAttributeToFilter('id',array("in"=>$productIds));

Can everybody helps me ? Thanks

올바른 솔루션이 없습니다

다른 팁

If you are looking to filtering by product ID, then use entity_id as 'id' column does not exist in the OOTB Magento products table.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 magento.stackexchange
scroll top