How to use join in activeDataProvider

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']);


}

Relation name in ‘query’ is wrong.

It should be:




'query' => Student::find()->joinWith(['studentJurusan'])->all(),