Deprecation: #78225 - Legacy PreparedStatements within Extbase

See forge#78225

Description

Extbase has a way to set raw statements with PreparedStatements based on the legacy DatabaseConnection a.k.a. TYPO3_DB. This functionality has been marked as deprecated.

Impact

Calling a query within Extbase with $query->setStatement($preparedStatement) using a \TYPO3\CMS\Core\Database\PreparedStatement object will trigger a deprecation log entry.

Affected Installations

Any TYPO3 extension with Extbase functionality using custom prepared statements with the legacy database API.

Migration

Use the same method setStatement() and provide a QueryBuilder object or a Statement object based on Doctrine DBAL.