I added a required field in a Job type node later. So existing nodes don't have that particular field value. I want to include all such field values. But how can I do it?
Here is query sample:
$query->entityCondition('entity_type', 'node')
->entityCondition('bundle', array('central_government_vacancy','psu_vacancy','state_government_vacancy'))
->propertyCondition('status', 1)
-> fieldCondition('field__expired_processed', 'value', 'NULL', '=') //I'm looking for this field
->fieldCondition('field_last_date_of_application', 'value', $date, '<=');
In the above code I want to find nodes having uninitialized field values : field_expired_processed.
!=, or using NULL to compare does not seem to work.