Skip to content

👣 Dynamic discriminator map for Doctrine2 entities and Nette Framework (3.0+)

License

Notifications You must be signed in to change notification settings

ipublikuj/doctrine-dynamic-discriminator-map

Repository files navigation

Dynamic discriminator map

Build Status Code coverage PHP Licence Downloads total Latest stable PHPStan

This extension adds support for dynamic definition of Doctrine discriminator map, so you can easily extend your entities in modules etc.

Installation

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

Documentation

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.