i can’t join 2 table.
public function actionIndex(){
$activeData = new ActiveDataProvider([
'query' => Student::find()->joinWith(['jurusan'])->all(),
'pagination' => [
'defaultPageSize' => 12,
]
]);
return $activeData;
}
this is the relation
public function getStudentJurusan()
{
return $this->hasOne(Jurusan::className(), ['jurusan_id' => 'student_jurusan_id']);
}