Category: messenger

Symfony 4.4 Messenger – How to get the last insert id when using the doctrine transaction middleware?

I want to use the doctrine_transaction middleware for symfony messenger and, according to the doc, this middleware take care to flush all persisted datas in the message. It’s fine but how can i retrieve the insert Id ? For example,…