Issue Task Closed

#102863Doctrine DBAL deprecated sequence name argument for Connection::lastInsertId()

Stefan Bürk 01/18/24, 13:08 updated 01/30/24, 08:25

Description

The usage of `Connection::lastInsertId()` with a sequence name
is deprecated as unsafe in scenarios with multiple concurrent
connections since Doctrine DBAL 3.2. If a newly inserted row
needs to be referenced, it is recommended to generate its
identifier explicitly prior to insertion.

[1] https://github.com/doctrine/dbal/blob/3.8.x/UPGRADE.md#deprecated-connectionlastinsertidname

Reviews 1