How to access entity method? |
Hello.
I've followed myth's auth extend guide to add some fields https://github.com/lonnieezell/myth-auth...tending.md I have this in my entity: Code: <?php namespace App\Entities; Model: Code: <?php namespace App\Models; So... according doc I could do $user->name to access entity method but in my controller I have: Code: <?php namespace App\Controllers\App; In kint I can see getName as an available method but I got this error: "Trying to get property 'name' of non-object" How can I acces that method? |
Messages In This Thread |
How to access entity method? - by jnar - 11-15-2020, 01:19 PM
RE: How to access entity method? - by includebeer - 11-15-2020, 04:52 PM
RE: How to access entity method? - by jnar - 11-15-2020, 05:52 PM
RE: How to access entity method? - by includebeer - 11-15-2020, 06:01 PM
RE: How to access entity method? - by jnar - 11-15-2020, 08:22 PM
|