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.

entityfieldquery_condition_operator_docs_d8_00.patch1.03 KBXano
FAILED: [[SimpleTest]]: [MySQL] Unable to apply patch entityfieldquery_condition_operator_docs_d8_00.patch. This may be a -p0 (old style) patch, which is no longer supported by the testbots. View
entityfieldquery_condition_operator_docs_d7_00.patch1.03 KBXano
PASSED: [[SimpleTest]]: [MySQL] 32,924 pass(es). View


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