2

I've bunch of customer attributes, So how can I filter customer collection with its custom attribute ?

1

1 Answer 1

0

Use addFieldToFilter() method.

Example

$replydb = $objectManager->get('\Vendor\Module\Model\Yourmodel')->getCollection();
$replydb->addFieldToFilter('status', 'Approved');
$replycoll = $replydb->getData();

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.