Using Entity with model, return empty Object |
Hello there,
Hope you are safe and healthy. PROBLEM: PHP Code: $user = $userModel->where('user_email', $email)->first(); Controller Code: PHP Code: public function doLogin() Model Code: PHP Code: <?php namespace App\Models; User Entity Code: PHP Code: <?php namespace App\Entities; If I Update the return type of model to OBJECT everything works fine but if i keep the return type as entity, it returns empty object. What is it that I am doing wrong? |
Messages In This Thread |
Using Entity with model, return empty Object - by harpreetsb - 04-13-2020, 06:50 AM
RE: Using Entity with model, return empty Object - by cyberstunts - 04-13-2020, 08:50 PM
|