예제 #1
0
 /**
  * @return \yii\db\ActiveQuery
  */
 public function getReservationinfos()
 {
     return $this->hasMany(Reservationinfo::className(), ['obj_reservation_id' => 'id']);
 }
예제 #2
0
 public function getReservationinfo()
 {
     return $this->hasOne(Reservationinfo::className(), ['id' => 'reservationinfo_id']);
 }