So I know if I build a dynamic SQL string I can do something like the following
$SQL = \"SELECT * FROM \" . $table; $first = 1; foreach($items as $key => $va
$query = $tableModel->newQuery(); foreach($items as $key => $val) { $query->where($key, "LIKE", '%'.$val.'%'); }
foreach( $items as $key => $value ) { $query->where( $key, '=', $value ); }
Is something like that what you're after?
EDIT: Looks like Mark beat me to it.