From ea71a9eba9cf44b45d9a4b43f6ce83a68331ef06 Mon Sep 17 00:00:00 2001 From: bMancone Date: Tue, 27 Dec 2011 17:37:37 +0000 Subject: [PATCH] // Fixed Where for IN and NOT IN --- classes/Collection.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/classes/Collection.php b/classes/Collection.php index 801ae1118..848bbe398 100644 --- a/classes/Collection.php +++ b/classes/Collection.php @@ -125,13 +125,13 @@ class CollectionCore implements Iterator, ArrayAccess, Countable { case '=' : case 'in' : - $this->query->where($this->parseField($field).' IN('.implode(', ', $this->formatValue($value, $field))); + $this->query->where($this->parseField($field).' IN('.implode(', ', $this->formatValue($value, $field)).')'); break; case '!=' : case '<>' : case 'notin' : - $this->query->where($this->parseField($field).' NOT IN('.implode(', ', $this->formatValue($value, $field))); + $this->query->where($this->parseField($field).' NOT IN('.implode(', ', $this->formatValue($value, $field)).')'); break; default : @@ -434,7 +434,7 @@ class CollectionCore implements Iterator, ArrayAccess, Countable $fieldname = $split[$i]; if ($fieldname == $definition['primary']) - $type = ObjectMode::TYPE_INT; + $type = ObjectModel::TYPE_INT; else { if (!isset($definition['fields'][$fieldname]))