简体   繁体   中英

Kohana 3 ORM query using NOTIN()

Is there a way to use a http://dev.mysql.com/doc/refman/5.0/en/comparison-operators.html#function_not-in with Kohana's ORM? Something like:

$products = ORM::factory('products')->notin('contry_id', $csl)->find_all();

Use where statement:

$products = ORM::factory('products')->where('contry_id', 'NOT IN', $csl)->find_all();

$csl must be array

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM