Welcome Guest, Not a member yet? Register   Sign In
insert without data
#4

It's definitely something I can bring up with the team.

I'd be lying if I said I hadn't been bit by that "No Data" exception a time or two myself.

The thing to remember is that the Model class is basically a large set of convenience methods focused around a single table. So there will inherently be slightly different restrictions there than would be just using the query builder itself.

And there's no performance cost from using db_connect()->table() again, compared to doing it through the model.
Reply


Messages In This Thread
insert without data - by webdeveloper - 06-05-2022, 04:26 AM
RE: insert without data - by kilishan - 06-05-2022, 08:56 PM
RE: insert without data - by webdeveloper - 06-07-2022, 03:12 AM
RE: insert without data - by kilishan - 06-07-2022, 06:42 AM
RE: insert without data - by webdeveloper - 06-08-2022, 05:44 AM
RE: insert without data - by kenjis - 06-10-2022, 04:03 PM



Theme © iAndrew 2016 - Forum software by © MyBB