Hey.
Does Yii have a way to pass array parameter to $params when building a condition?
Regarding my case, I have something like:
$user2groups = User2group::model()
->with('group')
->with('group.project')
->findAll('project.ID = :project_id AND t.REF_USER IN (:members)',
array(':project_id' => $project_id, ':members'=>implode(',', $members));
I’m trying to pass array of member ids (last row). The last try was to pass string with merged ids.
Still not working - returns only one row.
Any suggestions?
Thanks.