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