Hi,
How to use "not in" in new find() syntax?
"in" is working fine
$this->Model->find('list', array('fields' => array('id', 'name'),
'conditions' => array('id' => $model_ids)));
generates:
SELECT `Model`.`id`, Model`.`name` FROM `models` AS `Model` WHERE `id`
IN (2, 5)
but how to generate WHERE `id` NOT IN (2, 5)
Any ideas?
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"CakePHP" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---