Skip to content

Instantly share code, notes, and snippets.

View stetodd's full-sized avatar

Steve Todd stetodd

  • Mashbo
  • Liverpool
View GitHub Profile
@JanTvrdik
JanTvrdik / TransactionManager.php
Last active November 6, 2025 12:03
Retryable Transaction Implementation for Doctrine ORM
<?php declare(strict_types = 1);
namespace ShipMonk\QueryGuard\Framework\DoctrineOrm;
use Closure;
use Doctrine\DBAL\Exception\RetryableException;
use Doctrine\DBAL\TransactionIsolationLevel;
use Doctrine\ORM\EntityManager;
use Doctrine\ORM\EntityManagerInterface;
use Doctrine\ORM\OptimisticLockException;