Value of field ins null
In my OrderItem I have this:
The model OrderItem has this field:
In the database the user_id field has a value.
However the above TextInput return null. How can I print the name of the related user?
When I do
The model OrderItem has this field:
In the database the user_id field has a value.
However the above TextInput return null. How can I print the name of the related user?
When I do
user.name I get null