i would like to do a query search something like: select * from task t, activity a, project p where t.activityid = a.activityid and a.projectid = p.projectid and p.userid =25
I do understand my task, is related with activity, so how can i know the project created, task is related to the project.
in my task view-
$query1s = new Query;
$query1s->select('*')
->from('task','activity','project')
->where(['task.activityid' => 'activity.activityid'])
->andWhere(['activity.projectid' => 'project.projectid'])
->andWhere(['project.userid' => $userID]);
$command = $query1s->createCommand();
$datas = $command->queryAll();
$dataProvider = new ActiveDataProvider([
'query' => $query1s,
]);