Combining $userModel->save() with Transactions - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: CodeIgniter 4 (https://forum.codeigniter.com/forumdisplay.php?fid=28) +--- Forum: CodeIgniter 4 Support (https://forum.codeigniter.com/forumdisplay.php?fid=30) +--- Thread: Combining $userModel->save() with Transactions (/showthread.php?tid=77616) |
Combining $userModel->save() with Transactions - 68thorby68 - 09-24-2020 Hi, I have a pretty complex form that requires multiple table rows to be either inserted, updated or a combination of the two. I was wondering if it is at all possible to use the $userModel->save() in conjunction with tranaction as this would be a very convenient way of updating my table without the need for a complex rollback function, something like? PHP Code: protected $table = 'mytable'; Thanks in advance |