PHPackages                             levelab/doctrine-discriminator-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. levelab/doctrine-discriminator-bundle

ActiveSymfony-bundle

levelab/doctrine-discriminator-bundle
=====================================

Symfony-ready Doctrine DiscriminatorMap extension, which allows to move mapping from superclass to subclasses

v0.2(10y ago)1241.6k↓100%3[2 issues](https://github.com/Levelab/doctrine-discriminator-bundle/issues)MITPHPPHP &gt;=5.5

Since Jul 12Pushed 7y ago1 watchersCompare

[ Source](https://github.com/Levelab/doctrine-discriminator-bundle)[ Packagist](https://packagist.org/packages/levelab/doctrine-discriminator-bundle)[ Docs](http://levelab.ru/project/show/2)[ RSS](/packages/levelab-doctrine-discriminator-bundle/feed)WikiDiscussions master Synced today

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

LevelabDoctrineDiscriminatorBundle
==================================

[](#levelabdoctrinediscriminatorbundle)

Doctrine discriminator map extension bundle, which allows to move mapping from superclass to subclasses easily

Usage
=====

[](#usage)

- **Import annotation classes**

```
use Levelab\Doctrine\DiscriminatorBundle\Annotation\DiscriminatorParent
use Levelab\Doctrine\DiscriminatorBundle\Annotation\DiscriminatorEntry
```

- **Then turn this...**

```
/**
 * @DiscriminatorMap({"self" = "Parent", "child1" = "Child1", "child2" = "Child2"})
 */
class Parent { }

class Child1 extends Parent {}

class Child2 extends Parent {}
```

- **... into this**

```
/**
 * @DiscriminatorParent()
 * @DiscriminatorEntry("self")
 */
class Parent { }

/**
 * @DiscriminatorEntry("child1")
 */
class Child1 extends Parent {}

/**
 * @DiscriminatorEntry("child2")
 */
class Child2 extends Parent {}
```

- **That's it!**

###  Health Score

32

—

LowBetter than 74% of packages

Maintenance17

Infrequent updates — may be unmaintained

Popularity34

Limited adoption so far

Community12

Small or concentrated contributor base

Maturity51

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 66.7% 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 ~300 days

Total

3

Last Release

3671d ago

PHP version history (2 changes)v0.1-alphaPHP &gt;=5.3.2

v0.2PHP &gt;=5.5

### Community

Maintainers

![](https://www.gravatar.com/avatar/abe29c72ccd3568ca11bf4167a20b59a811f52ca7aa10f800e349c386bc51a73?d=identicon)[init-penguin](/maintainers/init-penguin)

---

Top Contributors

[![init-penguin](https://avatars.githubusercontent.com/u/1042776?v=4)](https://github.com/init-penguin "init-penguin (8 commits)")[![korotovsky](https://avatars.githubusercontent.com/u/104727?v=4)](https://github.com/korotovsky "korotovsky (3 commits)")[![rumours86](https://avatars.githubusercontent.com/u/661490?v=4)](https://github.com/rumours86 "rumours86 (1 commits)")

---

Tags

Symfony2mapdoctrine2extensiondiscriminator

### Embed Badge

![Health badge](/badges/levelab-doctrine-discriminator-bundle/health.svg)

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

###  Alternatives

[webonaute/doctrine-fixtures-generator-bundle

Generate Fixture from your existing data in your database. You can specify the Entity name and the IDs you want to import in your fixture.

67183.9k](/packages/webonaute-doctrine-fixtures-generator-bundle)[data-dog/audit-bundle

Audit bundle for symfony2 and doctrine orm, logs any database change

141881.8k1](/packages/data-dog-audit-bundle)[fsi/admin-bundle

FSi Admin Bundle. Admin generator for Symfony.

5848.9k6](/packages/fsi-admin-bundle)[ddmaster/postgre-search-bundle

Tools to use full-text search PostgreSQL in Doctrine.

1389.3k](/packages/ddmaster-postgre-search-bundle)[damianociarla/rating-bundle

This Bundle provides functionality for a rating system for Symfony applications

236.1k](/packages/damianociarla-rating-bundle)

PHPackages © 2026

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