PHPackages                             dualmedia/doctrine-retry-bundle - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Database &amp; ORM](/categories/database)
4. /
5. dualmedia/doctrine-retry-bundle

ActiveSymfony-bundle[Database &amp; ORM](/categories/database)

dualmedia/doctrine-retry-bundle
===============================

Bundle for easy access to retryable doctrine transactions

1.1.2(5mo ago)2500↑50%1[1 issues](https://github.com/dualmediaspzoo/doctrine-retry-bundle/issues)MITPHPPHP ^8.3

Since Sep 15Pushed 5mo agoCompare

[ Source](https://github.com/dualmediaspzoo/doctrine-retry-bundle)[ Packagist](https://packagist.org/packages/dualmedia/doctrine-retry-bundle)[ RSS](/packages/dualmedia-doctrine-retry-bundle/feed)WikiDiscussions master Synced today

READMEChangelog (6)Dependencies (10)Versions (7)Used By (0)

[![Packagist Downloads](https://camo.githubusercontent.com/9ad7ecc6cfda1540af0fc8c7ec306af8d5f4612203ec8c0c11360a65af7e37bd/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6475616c6d656469612f646f637472696e652d72657472792d62756e646c65)](https://packagist.org/packages/dualmedia/doctrine-retry-bundle)

Doctrine Retry Bundle
=====================

[](#doctrine-retry-bundle)

A Symfony Bundle for easy retryable database transactions.

Install
-------

[](#install)

Simply `composer require dualmedia/doctrine-retry-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],
];
```

Setup
-----

[](#setup)

You're free to leave the configuration as-is, otherwise all you can change is the following:

```
dm_doctrine_retry:
  track_nesting: '%kernel.debug%' # if true, Retrier will warn you if you nest transaction calls
```

Usage
-----

[](#usage)

```
use DualMedia\DoctrineRetryBundle\Retrier;
use Doctrine\ORM\EntityManagerInterface;

class Foo {
    public function __construct(
        private readonly Retrier $retrier
    ) {}

    public function doWork(
        int $orderId
    ): void {
        $this->retrier->execute(function (EntityManagerInterface $em) use ($orderId): void {
            // do some work which may cause deadlocks and such
            $order = $em->getRepository(SomeOrder::class)->find($orderId, \Doctrine\DBAL\LockMode::PESSIMISTIC_WRITE);
        });
    }
}
```

###  Health Score

39

—

LowBetter than 84% of packages

Maintenance60

Regular maintenance activity

Popularity20

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity55

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 57.9% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~23 days

Recently: every ~29 days

Total

6

Last Release

174d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/0642c17604cd51622ad504c999eb75ba78e5768bfa998eaa2922366fc90f0302?d=identicon)[pkly](/maintainers/pkly)

---

Top Contributors

[![JaWitold](https://avatars.githubusercontent.com/u/47141012?v=4)](https://github.com/JaWitold "JaWitold (11 commits)")[![pkly](https://avatars.githubusercontent.com/u/17160364?v=4)](https://github.com/pkly "pkly (8 commits)")

---

Tags

doctrineormphpsymfonysymfony-bundle

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan

Code StylePHP CS Fixer

Type Coverage Yes

### Embed Badge

![Health badge](/badges/dualmedia-doctrine-retry-bundle/health.svg)

```
[![Health](https://phpackages.com/badges/dualmedia-doctrine-retry-bundle/health.svg)](https://phpackages.com/packages/dualmedia-doctrine-retry-bundle)
```

###  Alternatives

[easycorp/easyadmin-bundle

Admin generator for Symfony applications

4.3k17.9M387](/packages/easycorp-easyadmin-bundle)[rcsofttech/audit-trail-bundle

Enterprise-grade, high-performance Symfony audit trail bundle. Automatically track Doctrine entity changes with split-phase architecture, multiple transports (HTTP, Queue, Doctrine), and sensitive data masking.

1189.8k](/packages/rcsofttech-audit-trail-bundle)[sylius/sylius

E-Commerce platform for PHP, based on Symfony framework.

8.5k5.9M737](/packages/sylius-sylius)[pimcore/pimcore

Content &amp; Product Management Framework (CMS/PIM/E-Commerce)

3.8k3.8M508](/packages/pimcore-pimcore)[sulu/sulu

Core framework that implements the functionality of the Sulu content management system

1.3k1.4M204](/packages/sulu-sulu)[kimai/kimai

Kimai - Time Tracking

4.8k9.0k1](/packages/kimai-kimai)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
