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