Marcus
Well-known member
I receive "ErrorException: [E_NOTICE] Trying to get property of non-object" when fetchOne() does not return elements. Do I always have to isset() the finders results before fetching the username here?
https://xf2demo.xenforo.com/dev-docs/entities-finders-repositories/
PHP:
$finder->where('user_id', 1)->fetchOne()->username;
https://xf2demo.xenforo.com/dev-docs/entities-finders-repositories/