pim-community-dev
pim-community-dev copied to clipboard
CPM-741 Upgrade doctrine DBAL to get better error messages in logs
trafficstars
Replaces https://github.com/akeneo/pim-community-dev/pull/17978 and https://github.com/akeneo/pim-community-dev/pull/17998
- Doctrine DBAL upgrade
- Fix issues caused by Breaking changes (https://github.com/doctrine/dbal/blob/3.4.x/UPGRADE.md)
- Remove manual keep-alive strategy (
PersistedConnectionEntityManager) for long running processes because it is now standard (https://github.com/doctrine/dbal/blob/3.4.x/UPGRADE.md#the-pingableconnection-interface-is-removed) - Doctrine now hits the DB from the constructor (https://github.com/doctrine/dbal/blob/3.4.x/src/Connection.php#L222). This was causing issues with the DI Container. To work around it, we are using an in memory adapter for some low level commands (cache:clear, cache:warmup, ...)