From 990ef700593f2d18d04115054f8ef48095ec31e8 Mon Sep 17 00:00:00 2001 From: Dries Buytaert <dries@buytaert.net> Date: Sat, 10 Sep 2011 11:23:23 -0400 Subject: [PATCH] - Patch #1273444 by Xano: Missing operator docs for EntityFieldQuery's propertyCondition() and addFieldCondition(). --- includes/entity.inc | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/includes/entity.inc b/includes/entity.inc index 31679fdccb9a..99baf4992b47 100644 --- a/includes/entity.inc +++ b/includes/entity.inc @@ -613,6 +613,8 @@ class EntityFieldQuery { * literals of the same type as the column. * - 'BETWEEN': This operator expects $value to be an array of two literals * of the same type as the column. + * The operator can be omitted, and will default to 'IN' if the value is an + * array, or to '=' otherwise. * * @return EntityFieldQuery * The called object. @@ -729,6 +731,8 @@ public function fieldDeltaCondition($field, $value = NULL, $operator = NULL, $de * literals of the same type as the column. * - 'BETWEEN': This operator expects $value to be an array of two literals * of the same type as the column. + * The operator can be omitted, and will default to 'IN' if the value is an + * array, or to '=' otherwise. * @param $delta_group * An arbitrary identifier: conditions in the same group must have the same * $delta_group. For example, let's presume a multivalue field which has -- GitLab