From 5d7162480ae13f99c8c590263201e45034300507 Mon Sep 17 00:00:00 2001 From: Alexander Demidov Date: Sun, 20 Oct 2013 13:37:38 +0400 Subject: [PATCH] =?UTF-8?q?=D0=94=D0=BE=D0=B1=D0=B0=D0=B2=D0=BB=D0=B5?= =?UTF-8?q?=D0=BD=20=D0=BC=D0=B5=D1=82=D0=BE=D0=B4=20whereNot=20-=20=D0=BF?= =?UTF-8?q?=D0=BE=D0=B2=D1=82=D0=BE=D1=80=20=D0=B4=D0=BB=D1=8F=20whereNotI?= =?UTF-8?q?n?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- model/SqlCriteria.php | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/model/SqlCriteria.php b/model/SqlCriteria.php index 23218ed..3da0777 100644 --- a/model/SqlCriteria.php +++ b/model/SqlCriteria.php @@ -87,6 +87,16 @@ class SqlCriteria } /** + * @param $field string + * @param $value array + * @return SqlCriteria + */ + public function whereNot($field, $value) + { + return $this->whereNotIn($field, $value); + } + + /** * @param $field string Field @ex 'field' * @param $order_desc bool Descendant sort direction * @return SqlCriteria