PHPackages                             miklosfarkas/dynamic-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. miklosfarkas/dynamic-discriminator-map-bundle

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

miklosfarkas/dynamic-discriminator-map-bundle
=============================================

DCSDynamicDiscriminatorMapBundle simplifies the use of Doctrine Single Table Inheritance mapping strategy in Symfony2.

v1.0.3(4y ago)02.2kMITPHPPHP &gt;=7.4

Since Dec 18Pushed 2y agoCompare

[ Source](https://github.com/miklosfarkas/DCSDynamicDiscriminatorMapBundle)[ Packagist](https://packagist.org/packages/miklosfarkas/dynamic-discriminator-map-bundle)[ Docs](https://github.com/miklosfarkas/DCSDynamicDiscriminatorMapBundle)[ RSS](/packages/miklosfarkas-dynamic-discriminator-map-bundle/feed)WikiDiscussions master Synced 3w ago

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

DynamicDiscriminatorMapBundle
=============================

[](#dynamicdiscriminatormapbundle)

DynamicDiscriminatorMapBundle simplifies the use of Doctrine Single Table and Class Table Inheritance mapping strategy in Symfony 5.3

With this bundle you can adds dynamically all classes of a hierarchy to the options of DiscriminatorMap using a config file. This way you can apply the methodology of 'decoupling'

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

[](#installation)

### Step 1: Download DynamicDiscriminatorMapBundle using composer

[](#step-1-download-dynamicdiscriminatormapbundle-using-composer)

Add DynamicDiscriminatorMapBundle in your composer.json:

```
{
	"require": {
    	"miklosfarkas/dynamic-discriminator-map-bundle": "dev-master"
	}
}

```

### Step 2: Enable the bundle

[](#step-2-enable-the-bundle)

Enable the bundle in the kernel:

```
