I'm trying to exclude a list of ids from a query using an ElementCriteriaModel
This is what I have so far, but it's resulting in nothing coming back when I'm expecting at least 1 result. Is something wrong with my syntax or is my method way off?
$criteria->id = 'and'; for ($i = 0; $i < count($idList); ++$i) $criteria->id .= ', not' . $idList[$i];
Also, I've tried removing the
$criteria->id = 'and'; to no avail
A nudge in the right direction would be much appreciated