Welcome Guest, Not a member yet? Register   Sign In
Models with parent::query not objects
#5

See https://codeigniter4.github.io/userguide...ry-builder and the section below it

Using the model's query builder methods (which have been injected) will return your model instance.
Getting the query builder separately ($builder = $usermodel->builder(sometable)) gives you a separate query builder, and
its methods should return instances of itself.
Reply


Messages In This Thread
RE: Models with parent::query not objects - by ciadmin - 10-21-2019, 11:01 AM



Theme © iAndrew 2016 - Forum software by © MyBB