From 3263af5e188aa46fd9caa034fad44f2c181fd25e Mon Sep 17 00:00:00 2001 From: Alexander Demidov Date: Thu, 17 Oct 2013 21:23:32 +0400 Subject: [PATCH] Add method SqlCriteria.whereNotIn(). --- model/SqlCriteria.php | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/model/SqlCriteria.php b/model/SqlCriteria.php index 8e1accf..23218ed 100644 --- a/model/SqlCriteria.php +++ b/model/SqlCriteria.php @@ -77,6 +77,16 @@ class SqlCriteria } /** + * @param $field string + * @param $value array + * @return SqlCriteria + */ + public function whereNotIn($field, $value) + { + return $this->where($field . ' not in ?', $value); + } + + /** * @param $field string Field @ex 'field' * @param $order_desc bool Descendant sort direction * @return SqlCriteria