Skip to content

Releases: doctrine/mongodb-odm

1.1.1

27 Jul 13:18
Compare
Choose a tag to compare

Maintenance release.

Please see changelog for notable fixes

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

1.0.7

27 Jul 13:24
Compare
Choose a tag to compare

Maintenance release.

Please see changelog for notable fixes

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

1.1.0

09 Jun 14:22
Compare
Choose a tag to compare

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 the Integer and Float type
  • The simple flag for references has been replaced with storeAs, 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

09 Jun 14:22
Compare
Choose a tag to compare

Maintenance release.

Please see changelog for notable fixes

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

1.0.5

16 Feb 10:04
Compare
Choose a tag to compare

Maintenance release.

Please see changelog for notable fixes

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

1.0.4

15 Dec 18:43
Compare
Choose a tag to compare

Maintenance release.

Please see changelog for notable fixes

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

1.0.3

03 Nov 15:01
Compare
Choose a tag to compare

Maintenance release.

Please see changelog for notable fixes

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

1.0.2

31 Aug 15:21
Compare
Choose a tag to compare

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

19 Aug 08:07
Compare
Choose a tag to compare

This release fixes a regression where running Cursor::count() returned the wrong count for the query by default.

1.0.0

18 Aug 18:17
Compare
Choose a tag to compare

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.