I am working on a project where I need to have a registry of teams and tournaments. A team can be involved in many tournaments so is a many-to-many relation.
So in symfony I have only two entities created for this many-to-many relation: Teams and RgTournaments.
My question is how can I delete from a single query all current relations (truncate the table rg_teams_to_tournaments) using doctrine?
The only method I found is described here but I would like to avoid loading all the entries in order to delete them one by one.