Add method SqlCriteria.whereNotIn().

This commit is contained in:
Alexander Demidov
2013-10-17 21:23:32 +04:00
parent 40e049c93e
commit 3263af5e18

View File

@ -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