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