Write the NOT directly in the column name of the condition.
The following is an example of using the model Model
on the SamplesController
.
$this->loadModel('Model');
$params=array
(
'conditions' = > array
(
'col1NOT' = > 'Hage',
'col2NOT' = > 'Fluff',
)
);
$return=$this->Model->find('all',$params);
© 2024 OneMinuteCode. All rights reserved.