I have data like this :
Table feedback, with entity : id_feedback (primary_key) , id_user (foreign key), feedback
.
Table user, with entity : id_user (primary_key), user_name
.
User has many feedback, feedback has one user.
I create json in app/controller/feedback
.
public function actionGetReplayFeedback($ID_KOMENTAR)
{
$replay = Feedback::find()->where('REPLAY_TO_ID = '. $ID_KOMENTAR)->all();
echo Json::encode($replay);
}
I get the json but i didn't get the username
. How can I get the username
?