protected function createWheres($fields, $terms, $identTerms) { $wheres = parent::createWheres($fields, $terms, $identTerms); foreach ($identTerms as $i=>$term) { $wheres[] = '(field=\'tag\' AND term=:identTerm' . $i . ')'; } return $wheres; }