neos / contentrepository-development-collection

Work in Progress on the Event Sourced Content Repository as installable set of packages
4 stars 9 forks source link

BUGFIX: Fix PHP 8 compatibility #202

Closed bwaidelich closed 2 years ago

bwaidelich commented 2 years ago

Description

With PHP 8 replaying all projections with MySQL/MariaDB leads to a PDOException:

There is no active transaction

Background

With PHP 8 (concretely since https://github.com/php/php-src/commit/990bb34) more errors are reported and now surface. In this case we were trying to commit an auto-commited transaction (see https://github.com/doctrine/migrations/issues/1202): Structural changes to a MySQL db (including TRUNCATE) must not be done in a transaction.