I have a bidirectional ManyToMany relation : Team <=> Championship with a championships_teams join table.
I would like getting all Teams and order by Teams who are in a specific championship first.
A simple sql query to get this can be : (in Mysql null come first)
select *
from team left join championships_teams
on id=team_id
and championship_id=:specific_id
order by championship_id desc
I have try to do it by using query builder without success.
Can i do this type of query by using query builder without mapping championships_teams as an entity ?