You must use the "set" method to update an entry. - 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: You must use the "set" method to update an entry. (/showthread.php?tid=76103) |
You must use the "set" method to update an entry. - caiomdecarli - 04-14-2020 I found several topics related to the error but I couldn't solve it. Below is a screenshot of the error and the code that is showing an error. CodeIgnter\Views\Header Code: <!-- Modal --> CodeIgniter\Controllers\User PHP Code: <?php namespace App\Controllers; PHP Code: <?php namespace App\Models; RE: You must use the "set" method to update an entry. - Chroma - 07-26-2020 You don't show what your database looked like, but it is possible a spelling difference between the two will cause this issue. Although, not affecting you, when using objects, it is important to pass in the correct object, a spelling mistake on the variable name will cause the same error. RE: You must use the "set" method to update an entry. - InsiteFX - 07-27-2020 The error is for an insert your not showing any insert code. |