/** * @return \yii\db\ActiveQuery */ public function getExamTypes() { return $this->hasMany(ExamType::className(), ['exam_id' => 'id']); }