You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
that sounds exactly how i would do it. a registry of named bridges, and the mappings reference that names, and a storage specific listener that uses the registry. it would even work with inter-orm links for example.
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 servicedoctrine_phpcr
as an argument and bothtransform
andreverseTransform
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
type
s 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?
/cc @dbu @sjopet
The text was updated successfully, but these errors were encountered: