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