A simple Symfony + Doctrine bundle to help with MariaDB/MySql-based rollback behavior.
Simply composer require dualmedia/savepoint-prevent-crash-bundle
Then add the bundle to your config/bundles.php file like so
return [
Symfony\Bundle\FrameworkBundle\FrameworkBundle::class => ['all' => true],
// other bundles ...
DualMedia\DoctrineRetryBundle\DoctrineRetryBundle::class => ['all' => true],
];No configuration is required. Middleware is enabled along the bundle.
We use it in production for months now with no issues alongside our doctrine-retry-bundle (check it out).