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.
| Comment | File | Size | Author |
|---|---|---|---|
| entityfieldquery_condition_operator_docs_d8_00.patch | 1.03 KB | xano | |
| entityfieldquery_condition_operator_docs_d7_00.patch | 1.03 KB | xano |
Comments
Comment #1
jhodgdonThe 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.
Comment #2
dries commentedCommitted to 7.x and 8.x. Thanks.
Comment #4
xano