Welcome Guest, Not a member yet? Register   Sign In
Using Entity with model, return empty Object
#2

(This post was last modified: 04-13-2020, 09:09 PM by cyberstunts.)

If no records are found, you will get null.

Replace where statement with ID to test, e.g.

PHP Code:
$user $userModel->where('user_id'1)->first(); 

Otherwise nothing obvious which I can help with.
Reply


Messages In This Thread
RE: Using Entity with model, return empty Object - by cyberstunts - 04-13-2020, 08:50 PM



Theme © iAndrew 2016 - Forum software by © MyBB