doctrine / DoctrineMongoODMModule

Laminas Module for Doctrine MongoDB ODM
https://www.doctrine-project.org/projects/doctrine-mongo-odm-module.html
MIT License
83 stars 87 forks source link

ODM 2.0 support? #205

Closed metanav closed 4 years ago

metanav commented 6 years ago

doctrine/mongodb-odm 2.00-alpha1 has been released recently. Is there any plan to upgrade doctrine/DoctrineMongoODMModule? All of my applications use Zend framework so I am not able to test the new version.

Ocramius commented 6 years ago

@metanav you can try it yourself via "require": {"doctrine/mongodb-odm": "2.0.0-alpha1 as 1.99.99"}

metanav commented 6 years ago

@Ocramius there is an upgrade guide which says there are some changes:

"The constructor signature of Doctrine\ODM\MongoDB\DocumentManager as well as the create, getClient, getDocumentDatabase, getDocumentCollection, and getDocumentCollections methods have been updated to handle classes from mongodb/mongodb instead of doctrine/mongodb."

I was just checking if doctrine/DoctrineMongoODMModule will work as is?

Ocramius commented 6 years ago

It will most likely not - changes will need to be made here as well, hence why I suggested you attempt an upgrade and see how much breaks.

metanav commented 6 years ago

I see, thanks!

alcaeus commented 6 years ago

I can tell you that the module is most likely not going to work with 2.0 without adjustments. I'll see when I can get to it, however the focus is on ODM itself and the Symfony bundle (as that's what I use personally). Contributions to the module are highly welcome.

metanav commented 5 years ago

@alcaeus Is there any plan to update it anytime soon? Please let me know if I can help, might need some guidance to start.

alcaeus commented 5 years ago

I most likely won't have time to work on this over the next weeks. You can take a look at the corresponding bundle PR: https://github.com/doctrine/DoctrineMongoDBBundle/pull/475 that brings basic compatibility with 2.0. If you have any questions, please don't hesitate contacting me here or in either the Symfony or Doctrine Slacks.

datasage commented 4 years ago

To avoid duplicating efforts, is someone already working on upgrading this to support 2.0 already?

alcaeus commented 4 years ago

Doctrine itself is not working on it.

TomHAnderson commented 4 years ago

It appears this will be a goal of the develop branch for Laminas.

rieschl commented 4 years ago

It appears this will be a goal of the develop branch for Laminas.

@TomHAnderson are you working on updating to odm 2.0? Because I did some work on that some time ago (very unfinisehd but already working basically) but stopped then because I'll probably need that to work on mezzio, too. I would rather do something like this one: https://github.com/DASPRiD/container-interop-doctrine. Either way, do you want to see my progress so far? I'll probably need to rebase it onto develop, though.

TomHAnderson commented 4 years ago

@rieschl I am not working towards ODM 2.0.

The develop branch here is in a working state and I just added Docker for testing (see the end of the README on develop for details). I would love to see what you have. Please create a PR on develop and let's go from there.

TomHAnderson commented 4 years ago

@rieschl I had the impression you would add odm 2.0 support to this develop branch. The project is waiting on these changes. Can you give me a timeline for when you can put a PR in place?

If your situation has changed and you won't be doing this please let me know and I'll release this with the old odm version. I would much prefer to include your work.

rieschl commented 4 years ago

@TomHAnderson Sorry. In the meantime I improved the code a bit but it's unfinished, so I don't think you can publish that. But due to the COVID incident I currently don't have much time to work on the code, but as soon I have some time I'll push it of course.