doctrine / DoctrineMongoDBBundle

Integrates Doctrine MongoDB ODM with Symfony
http://symfony.com/doc/current/bundles/DoctrineMongoDBBundle/index.html
MIT License
377 stars 229 forks source link

Remove unused mapping services #794

Closed franmomu closed 8 months ago

franmomu commented 8 months ago

Follow-up of https://github.com/doctrine/DoctrineMongoDBBundle/pull/793

While removing annotation mapping support in https://github.com/doctrine/DoctrineMongoDBBundle/pull/793, I've notice that these services are not necessary.

So mapping drivers are registered in AbstractDoctrineExtension::registerMappingDrivers().

For example for attribute it executes this code which in our case uses doctrine_mongodb.odm.metadata.attribute.class to create the AttributeDriver service.