updated manage room default configuration

This commit is contained in:
Shreesh Arora
2023-04-13 18:33:26 +05:30
parent 4d19a54d1a
commit c725262e2f
3 changed files with 88 additions and 77 deletions

View File

@@ -39,7 +39,7 @@ class HotelRoomType extends ObjectModel
'fields' => array(
'id_product' => array('type' => self::TYPE_INT, 'validate' => 'isInt'),
'id_hotel' => array('type' => self::TYPE_INT, 'validate' => 'isInt'),
'adults' => array('type' => self::TYPE_INT, 'validate' => 'isInt'),
'adults' => array('type' => self::TYPE_INT, 'validate' => 'isInt', 'default' => 2),
'children' => array('type' => self::TYPE_INT, 'validate' => 'isInt'),
'max_adults' => array('type' => self::TYPE_INT, 'validate' => 'isUnsignedInt', 'default' => 2),
'max_children' => array('type' => self::TYPE_INT, 'validate' => 'isUnsignedInt'),