This extension adds support for dynamic definition of Doctrine discriminator map, so you can easily extend your entities in modules etc.
The best way to install ipub/doctrine-dynamic-discriminator-map is using Composer:
composer require ipub/doctrine-dynamic-discriminator-map
After that you have to register extension in config.neon.
extensions:
dynamicDiscriminatorMap: IPub\DoctrineDynamicDiscriminatorMap\DI\DoctrineDynamicDiscriminatorMapExtension
Learn how to use Doctrine dynamic discriminator map in documentation.
Homepage http://www.ipublikuj.eu and repository http://github.com/iPublikuj/doctrine-dynamic-discriminator-map.