Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support additional mappers like MongoDB or CouchDB #2

Open
hacfi opened this issue Aug 7, 2013 · 1 comment
Open

Support additional mappers like MongoDB or CouchDB #2

hacfi opened this issue Aug 7, 2013 · 1 comment

Comments

@hacfi
Copy link
Owner

hacfi commented Aug 7, 2013

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?

/cc @dbu @sjopet

@dbu
Copy link

dbu commented Aug 8, 2013

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants