You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Looks like it needs to be updated on the update() method, not on the save() method otherwise it causes it to create new entries in the database. I haven't tested on insert() yet, but just so you're aware that it causes an error because it still thinks its an array.
Currently if you use your models to return data types of
object
instead ofarray
, you will be hit with an error once you try to use thesave()
method.When checking if its an object
is_object
, its looking for a non-stdClas. To resolve these in model.php you need to remove all the!
Corrected by:
Otherwise you end up with
Cannot use object of type stdClass as array
This needs to be fixed on thesave()
,insert()
, andupdate()
methods.The text was updated successfully, but these errors were encountered: