Faced a problem, I can not get data from the entity. For example,
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
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?
Code:
$user_entity->username
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?