• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Using Entity with model, return empty Object

#2
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

Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2020 MyBB Group.