Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
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 CreditAttribution: Dries commentedCommitted to 7.x and 8.x. Thanks.
Comment #4
Xano