alcaeus / mongo-php-adapter

:link: Adapter to provide ext-mongo interface on top of mongo-php-library
MIT License
463 stars 125 forks source link

Whether the latest version of Ext-mongodb is supported #284

Closed shanghaiyangming closed 3 years ago

shanghaiyangming commented 3 years ago

Whether the latest version of Ext-mongodb is supported

shanghaiyangming commented 3 years ago

image

shanghaiyangming commented 3 years ago

I have installed the latest version of the driver, and found that it can also be successfully upgraded through Composer, but what is the availability of specific features?  In config in Composer, ext-mognodb is ^1.2.0

shanghaiyangming commented 3 years ago

Or can I use the latest driver and continue to use the old script as long as I don't use the new features of the new mongodb version?

shanghaiyangming commented 3 years ago

Sorry, wrong understanding, no problem excuse me

alcaeus commented 3 years ago

This library provides the functionality of the legacy driver, built on top of the current driver. This was done to bring PHP 7 compatibility to ODM 1.x. As the feature set to support is defined by the legacy driver which is no longer supported. ODM 1.x will (mostly) work with MongoDB 5.0, but you most likely won't be able to make use of all features if you use ODM 1.x.