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

Mongo Support #2

Closed
danrossi opened this issue Jan 9, 2012 · 4 comments
Closed

Mongo Support #2

danrossi opened this issue Jan 9, 2012 · 4 comments

Comments

@danrossi
Copy link

danrossi commented Jan 9, 2012

Hi guys I am implementing ODM into Zf2, I have it working nicely now with tests but would love to implement this module with ODM support and 3rd party oauth logins. Any ideas of the progress, I tried to finish what is done myself but it seems the DI will cause errors if the PDO configs are missing. Just want to have ODM stuff loaded. Let me know of the progress and if help is required.

@EvanDotPro
Copy link
Member

MongoDB support via the ODM is planned, but it's still TBD how exactly this is going to work and implemented. Some discussion needs to be done on this.

When switching from PDO/Zend\Db to doctrine you also need to change the user model class config value right now to ZfcUser\Entity\User. The documentation in the readme is slightly out of date.

@danrossi
Copy link
Author

I'm doing some hacks for now, its kinda of getting there however the Spiffy modules have now been refactored to DoctrineModule and DoctrineORMModule and no ODM one yet, I had to add in new mapper classes for the mongo documentmanager stuff and i'm having to extend the User document to add in custom fields as the social login profile has its own embedded document inside User with the social profile data. No idea how long it will take to stablise as stuff keeps being refactored. I have also added in some customisations to configure the form capture which also works disabling by returning false. This lets me configure recaptcha will send diffs if needed.

@danrossi
Copy link
Author

I see what the problem is, it might need to be a factory, as it could either have ODM or ORM loaded, right now i just commented out the loaders for ORM and loaded ODM instead. I have made some hacks to setup an ODM validator for the email field, and re linked it to the newly refactored DoctrineModule/ DoctrineODMModule however I have to send them the diffs first ;)

@EvanDotPro
Copy link
Member

Initial Mongo support has now been added via PR #3. Documentation still needs updated, but it has been tested to work by @spiffyjr.

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

No branches or pull requests

2 participants