Table join only returning 1 matching column instead of multiple
Database Setup
-------
Table
Using this query ^ I am expecting to retrieve...
Image 1 -
Image2 -
Image3-
Image4 -
Here is my current returned data...
-------
Table
tournaments - id
- title
- matches ( FK
field inidt_matches)
t_matches - id
-created_at - t_id ( FK
field inidtournaments) - t_match ( FK
field inidt_match) -- Holds details about match
t_match- id
- title
- state
- participants ( FK
field ofidparticipantstable )
t_match_participants- id
- match_id ( FK
field ofidt_match - participant ( FK
foridprofilestable )
Using this query ^ I am expecting to retrieve...
- Multiple
matches, returning as an array since there are multiple matches in my database using thet_idof1 - Multiple
participants, returning as an array since there are multiple participants for the givenmatch_id
- A single
participantobject - A single
matchobject
Image 1 -
tournamentsImage2 -
t_matchesImage3-
t_matchImage4 -
t_match_participantsHere is my current returned data...



