How can I get the last insert id with doctrine 2 ORM? I didn\'t find this in the documentation of doctrine, is this even possible?
More simple: SELECT max(id) FROM client
SELECT max(id) FROM client