Saeven / zf3-circlical-user

Turnkey Authentication, Identity, and RBAC for Laminas and Zend Framework 3. Supports Doctrine and Middleware.
Mozilla Public License 2.0
36 stars 15 forks source link

MongoDB support via doctrine/doctrine-mongo-odm-module #37

Closed mdjaman closed 6 years ago

mdjaman commented 6 years ago

Is there any port or configuration to integrate ODM instead of ORM?

Saeven commented 6 years ago

Hi! I've never used MongoDB, to be honest, I like to stay as far away from it as I can.

How do you typically use Doctrine with MongoDB?

mdjaman commented 6 years ago

The Doctrine MongoODM is not far from what you have in ORM version. The ORM/ODM is just a wrapper, both have doctrine-module in their dependency

mdjaman commented 6 years ago

Something that make me little reluctant is that your clearly add doctrine/doctrine-orm-module depedency as required. Expected it to be in the suggest or require-dev section

Saeven commented 6 years ago

If you want to submit a PR that grants the Mongo functionality in some way, we can certainly review it together. I'll dig into the suggestion of 'suggest' I'd have to test how well it behaves without that library installed.

mdjaman commented 6 years ago

Fine to me 😉