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