Releases: doctrine/mongodb-odm
1.1.1
1.0.7
1.1.0
Doctrine MongoDB 1.1.0 Release
We are happy to announce the availability of Doctrine MongoDB ODM 1.1.0.
What is new in 1.1.0?
Doctrine MongoDB ODM 1.1.0 comes with the following new features:
- ODM now supports sharded collections out of the box
- Users may provide custom implementations for 1-n associations
- Fetch documents in read-only mode
- Partial indexes, which were introduced in MongoDB 3.2
- PHP 7 support
- and much more
PHP 7 support
Running MongoDB ODM on PHP 7 requires the new MongoDB driver (ext-mongodb
) which is not directly compatible with ODM. To solve this, you can use a polyfill like mongo-php-adapter, which provides the legacy driver API on top of the new driver. To do so, in your PHP 7 project, add the following Composer directives in addition to the MongoDB ODM requirement:
{
"require": {
"alcaeus/mongo-php-adapter": "^1.0",
"ext-mongo": "*"
}
}
Due to a bug in Composer you need to include a requirement to ext-mongo. This requirement will be correctly filled by
mongo-php-adapter
.
Upgrading to 1.1.0
The new version requires PHP 5.6+; older versions are no longer supported. If you are using an older version, please use Doctrine MongoDB ODM 1.0.x or upgrade your PHP version. In addition to these PHP version changes, MongoDB ODM 1.1.0 requires version 1.5 or newer of the legacy MongoDB driver. The new MongoDB driver is supported a polyfill (like mongo-php-adapter
mentioned above).
To use custom collection classes, you must set a persistentCollectionDir
in the configuration. This is an optional feature and is not required by default.
Several features have been deprecated and will be dropped in the 2.0 release:
- All specific type annotations (e.g.
@String
) have been deprecated. Please use the@Field
annotation instead. - The
Increment
type has been deprecated in favor of a storage strategy combined with theInteger
andFloat
type - The
simple
flag for references has been replaced withstoreAs
, allowing more flexibility.
Installation
You can install this version of MongoDB ODM by using Composer and the following composer.json
contents:
{
"require": {
"doctrine/mongodb-odm": "^1.1.0"
}
}
Stability
As of today, Doctrine MongoDB ODM 1.1.0
is the stable distribution. There is no release schedule for an upcoming version yet.
Due to the requirement changes introduced with MongoDB ODM 1.1.0
we have decided to provide bug fixes as well as security fixes for MongoDB ODM 1.0.x
for an additional 6 months. After that, 1.0.x
will no longer be supported.
1.0.6
1.0.5
1.0.4
1.0.3
1.0.2
Note: this release addresses a known security vulnerability
All issues and pull requests in this release may be found under the 1.0.2 milestone.
#1223 resolved a security vulnerability related to file and directory creation in ODM. Doctrine Common and ORM are also affected, so users are encouraged to update all libraries and dependencies. The vulnerability has been assigned CVE-2015-5723 and additional information on the issue may be found in this blog post.
1.0.1
1.0.0
Requires Doctrine MongoDB 1.2.x.
This is a stable release. From now on, the project will follow semantic versioning.
See changelog for additional release notes.