RFC: change mapping to chain mapper
f3l1x opened this issue · comments
Milan Felix Šulc commented
I would like to change internal mapping driver to DriverChain
. It would be more suitable for separate extensions, each could register own mapper, or for modular system.
Snippet from doc: https://www.doctrine-project.org/projects/doctrine-orm/en/2.6/reference/advanced-configuration.html#multiple-metadata-sources
$chain = new DriverChain();
$chain->addDriver($xmlDriver, 'Doctrine\Tests\Models\Company');
$chain->addDriver($yamlDriver, 'Doctrine\Tests\ORM\Mapping');
Milan Felix Šulc commented
Marek Bartoš commented
@f3l1x Couldn't we do same thing in Apitte?
Milan Felix Šulc commented
Sure. Good idea.
Milan Felix Šulc commented
Will be implemented in v0.6.