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

ActiveLibrary[Database &amp; ORM](/categories/database)

hopeter1018/doctrine-discriminator-map-bundle
=============================================

This bundle simplify doctrine discriminator map config

1.0.2(5y ago)08MITPHPPHP &gt;=5.5.9

Since Jul 9Pushed 5y ago1 watchersCompare

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

READMEChangelogDependenciesVersions (4)Used By (0)

doctrine-discriminator-map-bundle
=================================

[](#doctrine-discriminator-map-bundle)

Introduction
------------

[](#introduction)

This bundle aims to simplify doctrine discriminator map config.

By adding **ONLY** one annotation to parent and **EACH** children, the bundle:

- handle the ` * @ORM\\*` annotation
- add a Database **index**

Installation
------------

[](#installation)

### Require the package

[](#require-the-package)

`composer require hopeter1018/doctrine-discriminator-map-bundle`

### Add to kernel

[](#add-to-kernel)

#### Symfony 4+ or Symfony Flex

[](#symfony-4-or-symfony-flex)

Add `/config/bundles.php`

```
return [
  ...,
  HoPeter1018\DoctrineDiscriminatorMapBundle\HoPeter1018DoctrineDiscriminatorMapBundle::class => ['all' => true],
];
```

#### Symfony 2+

[](#symfony-2)

Add `/app/AppKernel.php`

```
$bundles = [
  ...,
  new HoPeter1018\DoctrineDiscriminatorMapBundle\HoPeter1018DoctrineDiscriminatorMapBundle(),
];
```

### Config

[](#config)

#### thru Doctrine Annotation (Parent + ALL children)

[](#thru-doctrine-annotation-parent--all-children)

##### Parent

[](#parent)

```
namespace Your\Bundle\Entity;

use HoPeter1018\DoctrineDiscriminatorMapBundle\Annotation\DiscriminatorParent;

/**
 * Class docblock
 *
 * @DiscriminatorParent
 */
class ParentEntityClass {
}
```

##### All Children

[](#all-children)

```
namespace Your\Bundle\Entity;

use HoPeter1018\DoctrineDiscriminatorMapBundle\Annotation\DiscriminatorParent;

/**
 * Class docblock
 *
 * @DiscriminatorEntry
 */
class EntryEntityClass {

}
```

###  Health Score

23

—

LowBetter than 26% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity53

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% 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 ~0 days

Total

2

Last Release

2184d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/e5951ab0c369dd2beaddbccdc92a31e17d767580ba6b0a6f06a4895e50fbe117?d=identicon)[hopeter1018](/maintainers/hopeter1018)

---

Top Contributors

[![hopeter1018](https://avatars.githubusercontent.com/u/6047177?v=4)](https://github.com/hopeter1018 "hopeter1018 (6 commits)")

---

Tags

symfonybundledoctrinediscriminator

### Embed Badge

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

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

###  Alternatives

[sonata-project/doctrine-orm-admin-bundle

Integrate Doctrine ORM into the SonataAdminBundle

46118.2M166](/packages/sonata-project-doctrine-orm-admin-bundle)[omines/datatables-bundle

Symfony DataTables Bundle with native Doctrine ORM, Elastica and MongoDB support

2841.5M6](/packages/omines-datatables-bundle)[spiriitlabs/form-filter-bundle

Symfony bundle for dynamic filtering, search forms and Doctrine query generation

39542.3k11](/packages/spiriitlabs-form-filter-bundle)[prezent/doctrine-translatable-bundle

Integrate the doctrine-translatable extension in Symfony

14722.0k7](/packages/prezent-doctrine-translatable-bundle)

PHPackages © 2026

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