Giter Site home page Giter Site logo

ODM 2.0 support? about doctrinemongoodmmodule HOT 14 CLOSED

metanav avatar metanav commented on September 17, 2024 1
ODM 2.0 support?

from doctrinemongoodmmodule.

Comments (14)

rieschl avatar rieschl commented on September 17, 2024 1

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.

from doctrinemongoodmmodule.

rieschl avatar rieschl commented on September 17, 2024 1

@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.

from doctrinemongoodmmodule.

Ocramius avatar Ocramius commented on September 17, 2024

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

from doctrinemongoodmmodule.

metanav avatar metanav commented on September 17, 2024

@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?

from doctrinemongoodmmodule.

Ocramius avatar Ocramius commented on September 17, 2024

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.

from doctrinemongoodmmodule.

metanav avatar metanav commented on September 17, 2024

I see, thanks!

from doctrinemongoodmmodule.

alcaeus avatar alcaeus commented on September 17, 2024

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.

from doctrinemongoodmmodule.

metanav avatar metanav commented on September 17, 2024

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

from doctrinemongoodmmodule.

alcaeus avatar alcaeus commented on September 17, 2024

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: doctrine/DoctrineMongoDBBundle#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.

from doctrinemongoodmmodule.

datasage avatar datasage commented on September 17, 2024

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

from doctrinemongoodmmodule.

alcaeus avatar alcaeus commented on September 17, 2024

Doctrine itself is not working on it.

from doctrinemongoodmmodule.

TomHAnderson avatar TomHAnderson commented on September 17, 2024

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

from doctrinemongoodmmodule.

TomHAnderson avatar TomHAnderson commented on September 17, 2024

@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.

from doctrinemongoodmmodule.

TomHAnderson avatar TomHAnderson commented on September 17, 2024

@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.

from doctrinemongoodmmodule.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.