PHPackages                             umanit/doctrine-singleton-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. umanit/doctrine-singleton-bundle

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

umanit/doctrine-singleton-bundle
================================

Singleton entities working with Doctrine and Sonata

2.0.5(11mo ago)67.7k4[1 issues](https://github.com/umanit/doctrine-singleton-bundle/issues)MITPHPPHP &gt;=8.0

Since Jun 15Pushed 11mo ago6 watchersCompare

[ Source](https://github.com/umanit/doctrine-singleton-bundle)[ Packagist](https://packagist.org/packages/umanit/doctrine-singleton-bundle)[ Docs](https://github.com/umanit/doctrine-singleton-bundle)[ RSS](/packages/umanit-doctrine-singleton-bundle/feed)WikiDiscussions master Synced yesterday

READMEChangelog (3)Dependencies (3)Versions (11)Used By (0)

Doctrine Singleton Bundle
=========================

[](#doctrine-singleton-bundle)

This bundle intends to easily create complex singleton entities (totally unique, or based on some properties). Sonata Admin friendly with automatic integration.

Install
-------

[](#install)

Register the bundle to your 'app/AppKernel.php'

```
    new Umanit\DoctrineSingletonBundle\UmanitDoctrineSingletonBundle(),
```

That's it!

Usage
-----

[](#usage)

### Tell that your entity is a singleton

[](#tell-that-your-entity-is-a-singleton)

Just need to implement the `Umanit\DoctrineSingletonBundle\Model\SingletonInterface`

```
