How can I create a dql query to the database in SonataAdmin . I have a mySQL query, I need to translate it into dql , or somehow use it in this format, but I don’t know how
SELECT ca.id, cu.card AS cu_id FROM card ca LEFT OUTER JOIN customer cu ON ca.id = cu.card WHERE cu.id IS NULL
SELECT card.id, customer.card AS cu_id FROM card LEFT JOIN customer WITH card.id = customer.card WHERE customer.id IS NULL