我有 2 个模型:与 (User.php) 连接的项目和用户:
public function relations()
{
// NOTE: you may need to adjust the relation name and the related
// class name for the relations automatically generated below.
return array(
"projects"=>array(self::MANY_MANY, 'Project','projects_users(user_id, project_id)'),
);
}
我想显示 CActiveDataProvider 中未与项目连接的所有用户。我该怎么做?