-
Notifications
You must be signed in to change notification settings - Fork 0
Description
I would like to add support for more Doctrine data mappers like MongoDB or CouchDB ODM and, if possible, allow adding a custom one too.
I don’t know exactly how to properly implement this though. Currently the DoctrineORMEventSubscriber gets the service doctrine_phpcr as an argument and both transform and reverseTransform are to some extend specific to Doctrine PHPCR ODM.
My first idea would be to add configuration for the bundle and you have to specify which data mappers to enable. A registry contains the information which mappers are available and which types can be used (phpcr, orm, mongodb, couchdb etc). The part I hardcoded in the event subscriber would be taken over by the corresponding service of a data mapper.
Is this how it should be done?