EntityFieldQuery::propertyCondition() and EntityFieldQuery::addFieldCondition() allow operators to be omitted. In this case, NULL is passed on to SelectQuery, which decides whether to use IN or =. The attached patches document this behavior.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

jhodgdon’s picture

Status: Needs review » Reviewed & tested by the community
Issue tags: +Needs backport to D7

The two patches appear to be identical. You really only needed to attach it once and note that it also applies to d7. :)

Anyway, thanks! This seems like a good addition to the docs.

Dries’s picture

Status: Reviewed & tested by the community » Fixed

Committed to 7.x and 8.x. Thanks.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

Xano’s picture

Assigned: Xano » Unassigned