Dbal insert or update, doctrine group by