예제 #1
0
 /**
  * @return \yii\db\ActiveQuery
  */
 public function getHotelCategories()
 {
     return $this->hasMany(HotelCategory::className(), ['class_id' => 'id']);
 }
예제 #2
0
파일: Rooms.php 프로젝트: kdes70/hotel.lok
 /**
  * @return \yii\db\ActiveQuery
  */
 public function getCategory()
 {
     return $this->hasOne(HotelCategory::className(), ['id' => 'category_id']);
 }