Project

General

Profile

Actions

Task #102863

closed

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

Added by Stefan Bürk 6 months ago. Updated 6 months ago.

Status:
Closed
Priority:
Should have
Assignee:
Category:
Database API (Doctrine DBAL)
Target version:
Start date:
2024-01-18
Due date:
% Done:

100%

Estimated time:
TYPO3 Version:
13
PHP Version:
Tags:
Complexity:
Sprint Focus:

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

Actions

Also available in: Atom PDF