/** * @param array $items * @param \Magento\Eav\Model\Entity\Collection\AbstractCollection $collection * @return \Magento\Eav\Model\Entity\Collection\AbstractCollection * @throws \Magento\Framework\Exception\LocalizedException */ protected function convertValueArrayToCollectionItems($items, $collection) { /** @var \Magento\Rma\Model\ResourceModel\Item\Collection $collection */ foreach ($items as $item) { $collection->addFilter('entity_id', $item['entity_id'], 'or'); } $collection->load(); return $collection; }