Skip to main content
1 of 3
Mage2 Developer
  • 1.5k
  • 1
  • 18
  • 37

Magento 2 + custom eav field value store in array

I have custom eav structure and there is store_id save in array format in database field.

I need to filer collection with addFieldToFilter with store_id.

$collection = $this->xyzCollectionFactory->create();
$collection->addFieldToFilter('store_id', ['in' => $this->storeManager->getStore()->getId()]);

this filter is not working, any one have idea how can i do that?

Mage2 Developer
  • 1.5k
  • 1
  • 18
  • 37