Welcome Guest, Not a member yet? Register   Sign In
Empty entity attributes
#1
Question 

Faced a problem, I can not get data from the entity. For example,
Code:
$user_entity->username
always returns NULL. When viewing the entity obtained through Kint debug, my data is visible in the attributes. Also, when using getters or setters of an entity, I constantly get an error
Quote:Call to a member function test_func () on array

An entity object is returned by the model. I did everything according to the CI4 documentation, but ran into such a problem. What are the options?
Reply


Messages In This Thread
Empty entity attributes - by Asteria - 09-18-2019, 07:39 AM
RE: Empty entity attributes - by dave friend - 09-18-2019, 01:41 PM
RE: Empty entity attributes - by Asteria - 09-18-2019, 02:34 PM



Theme © iAndrew 2016 - Forum software by © MyBB