Skip to content

1.0.5

Choose a tag to compare

@alcaeus alcaeus released this 03 Jul 16:20
· 44 commits to 1.0.x since this release

I'm happy to announce that version 1.0.5 of mongo-php-adapter is now available.

Release highlights

This release fixes an error when passing both the update parameter and option to MongoCollection::findAndModify and improves the exception handling for bulk write operations. Last but not least, calling MongoCollection::getIndexInfo will now correctly report indexes with the unique option set.

All issues and pull requests under this release may be found under the 1.0.5 milestone.

Feedback

Please use the issue tracker to report any issues that you may encounter.

Installation

The preferred method of installing this library is with Composer by running the following from your project root:

$ composer require "alcaeus/mongo-php-adapter=^1.0.0"

This package declares that it provides ext-mongo; Composer only allows this replacement to apply if composer.json or a dependency contain a requirement, see composer/composer#2690.

Therefore, you either need to have a dependency on a package which requires ext-mongo, such as doctrine/mongodb, in your project:

"require": {
    "php": "^7.0",
    "alcaeus/mongo-php-adapter": "^1.0.0",
    "doctrine/mongodb": "dev-master"
}

or you need to explicitly require ext-mongo yourself in composer.json:

"require": {
    "php": "^7.0",
    "alcaeus/mongo-php-adapter": "^1.0.0",
    "ext-mongo": "*"
}