Notice: Trying to get property of non-object in /var/www/vhosts/condothai.co.th/httpdocs/modules/index/controllers/room.php on line 43

Fatal error: Uncaught exception 'PDOException' with message 'SQLSTATE[23000]: Integrity constraint violation: 1048 Column 'room_id' cannot be null' in /var/www/vhosts/condothai.co.th/httpdocs/Kotchasan/Database/PdoMysqlDriver.php:117 Stack trace: #0 /var/www/vhosts/condothai.co.th/httpdocs/Kotchasan/Database/PdoMysqlDriver.php(117): PDOStatement->execute(Array) #1 /var/www/vhosts/condothai.co.th/httpdocs/modules/index/models/room.php(66): Kotchasan\Database\PdoMysqlDriver->insert('room_log', Array) #2 /var/www/vhosts/condothai.co.th/httpdocs/modules/index/controllers/room.php(43): Index\Room\Model::updateView(NULL) #3 /var/www/vhosts/condothai.co.th/httpdocs/modules/index/controllers/main.php(100): Index\Room\Controller->render(Object(Kotchasan\Http\Request)) #4 /var/www/vhosts/condothai.co.th/httpdocs/modules/index/controllers/index.php(72): Index\Main\Controller->execute(Object(Kotchasan\Http\Request)) #5 /var/www/vhosts/condothai.co.th/httpdocs/Kotchasan/Router.php(72): Index\Index\Controller->index(Object(Kotchasan\Ht in /var/www/vhosts/condothai.co.th/httpdocs/Kotchasan/Database/PdoMysqlDriver.php on line 123