Skip to main content
added 4 characters in body
Source Link

You should try using addFieldToFilteraddFieldToFilter instead of addAttributeToFilteraddAttributeToFilter because you are working with the database table field rather than a customer attribute.

Please try it once:

$customer = $this->_customerFactory->create(); $customerData = $customer->getCollection()->addFieldToFilter('custom_field',array('neq'=>'cleared'))->setOrder('entity_id','ASC')->load(); 

You should try using addFieldToFilter instead of addAttributeToFilter because you are working with the database table field rather than a customer attribute.

Please try it once:

$customer = $this->_customerFactory->create(); $customerData = $customer->getCollection()->addFieldToFilter('custom_field',array('neq'=>'cleared'))->setOrder('entity_id','ASC')->load(); 

You should try using addFieldToFilter instead of addAttributeToFilter because you are working with the database table field rather than a customer attribute.

Please try it once:

$customer = $this->_customerFactory->create(); $customerData = $customer->getCollection()->addFieldToFilter('custom_field',array('neq'=>'cleared'))->setOrder('entity_id','ASC')->load(); 
Source Link

You should try using addFieldToFilter instead of addAttributeToFilter because you are working with the database table field rather than a customer attribute.

Please try it once:

$customer = $this->_customerFactory->create(); $customerData = $customer->getCollection()->addFieldToFilter('custom_field',array('neq'=>'cleared'))->setOrder('entity_id','ASC')->load();