/** * @return \yii\db\ActiveQuery */ public function getDepartment() { return $this->hasOne(Department::className(), ['id' => 'department_id']); }