Answer the question
In order to leave comments, you need to log in
Problem with the right selection?
Perhaps due to the fact that it is already deep in the night, but I am rigidly stupid.
There is a table like this:
This is a table that stores users of dialogs.
Accordingly, there is still a table:
dialogs ( id );
messages ( id | user_id | dialog_id | content );
users ( id | name ).
I need to check for the existence of a dialogue between two users, whether there is a dialogue between user_1 and user_2.
Or maybe it can be somehow beautifully displayed using ar yii?
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question