0

What i am doing

->addFieldToFilter('value', array(['eq' => '', array('isnull' => true)]))

What i want in the query - '((value = '' )is NULL)`

Can anyone help me on this

Thanks.

  • What is your actual requirement ? do you want to check value is empty and null? – aravind Feb 10 at 12:41
  • i am checking if a customer ticked the attribute or not when i do null= true doesnt bring me any record but soon as i add is null it works – jibin george Feb 10 at 12:52
  • so can you explain me what exact you want? – sarvesh Dineshkumar Patel Feb 11 at 6:51
0

Try this solution,

->addFieldToFilter('value', array('null' => true) );
  • this returns (value IS NULL) i needed ((value = '' )is NULL) – jibin george Feb 10 at 12:34

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.