A VARCHAR field in my db has a comma separated list of tags.
I have a list of values that I want to exclude, but having trouble.
This is what I was trying...
$result = $this->Tags->find(
'all',
'conditions'=>array(
'fieldName NOT LIKE'=>'%tag1%',
'fieldName NOT LIKE'=>'%tag2%'
)
);
That works on the first line in the condition only.
Have also tried...
$result = $this->Tags->find(
'all',
'conditions'=>array(
'NOT'=>array(
'fieldName LIKE'=>'%tag1%',
'fieldName LIKE'=>'%tag2%'
(
)
);
I keep looking in the Cake documentation, but haven't been able to find this specifically. Thanks.