You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

48 lines
870 B

  1. <?php
  2. namespace backend\modules\hotel\models;
  3. use Yii;
  4. /**
  5. * This is the model class for table "hotel_mapping".
  6. *
  7. * @property integer $ID
  8. * @property integer $channel_id
  9. * @property string $hotel_str
  10. */
  11. class HotelMapping extends \common\models\zModel
  12. {
  13. /**
  14. * @inheritdoc
  15. */
  16. public static function tableName()
  17. {
  18. return 'hotel_mapping';
  19. }
  20. /**
  21. * @inheritdoc
  22. */
  23. public function rules()
  24. {
  25. return [
  26. [['ID', 'channel_id', 'hotel_str'], 'required'],
  27. [['ID', 'channel_id'], 'integer'],
  28. [['hotel_str'], 'string', 'max' => 500],
  29. ];
  30. }
  31. /**
  32. * @inheritdoc
  33. */
  34. public function attributeLabels()
  35. {
  36. return [
  37. 'ID' => 'ID',
  38. 'channel_id' => 'Channel ID',
  39. 'hotel_str' => 'Hotel Str',
  40. ];
  41. }
  42. }