public function getRooms() { return $this->hasMany(room::className(), ['building_id' => 'id']); }
public function getRoom() { return $this->hasOne(room::className(), ['id' => 'room_id']); }