What is the syntax for a multi-table delete on a MySQL database using Doctrine?
问题 Using Doctrine, I am trying to delete records in a single table based on data gathered from multiple tables. 'companies_groups' is an association table linking 'companies' to 'groups'. I want to delete all records in this table linked to a specific company, with the restriction that only 'companies_groups' records linked to a 'public' group will be deleted. If I were to write this in pure SQL, it would look something like this: DELETE companies_groups FROM companies_groups, groups WHERE