I have one thing to ask to all of you.I have one model class that is recieves some texts from database.In this row also I have user_id colounm.I need to recieve userInformation with another model file for each post how can i do this?
I explain what I want: I have table like this: id[PK] title content user_id[Foreign Key]
example data: 1 | loreim ipsum | hello its new content text | 1
also I have a user table id[PK] username avatar
example data 1 | admin | avatar.gif
I am recieving datas from first table but I need to recieve author user's username and avatar.How can i do this in controller.