Because field_sql_storage_field_storage_query uses INNER JOINs instead of LEFT JOINs, it is not possible to use EntityFieldQuery to query for entities without a value for a specific field.
Because field_sql_storage_field_storage_query uses INNER JOINs instead of LEFT JOINs, it is not possible to use EntityFieldQuery to query for entities without a value for a specific field.
Comments
Comment #1
bojanz commentedFollowing.
Comment #2
supertwang commentedfollowing
Comment #3
pbuyle commentedThe
INNER JOINs are actually done byfield_sql_storage_field_storage_query. I don't known if any other field storage backend supportNULLin field condition or not.The
INNER JOINs infield_sql_storage_field_storage_queryare also the cause of #1240566: In field_sql_storage_field_storage_query, any condition on a field's column excludes entities with a NULL value for this columnComment #4
pbuyle commentedThe issue was already reported in #1226622: EntityFieldQuery doesn't support query for entities without a value for a specific field
Comment #5
grota commentedFor a workaround see #1157006.
Comment #5.0
grota commentedThe
INNER JOINs are actually done byfield_sql_storage_field_storage_query.