<commit_before>CHANGELOG for 1.1.x
===================

This changelog references the relevant changes done in 1.1 minor versions. If upgrading from
1.0.x branch, please review
[Upgrade Path](https://github.com/doctrine/mongodb-odm/blob/master/CHANGELOG-1.1.md#upgrade-path).

1.1.0
-----

All issues and pull requests in this release may be found under the
[1.1.0 milestone](https://github.com/doctrine/mongodb-odm/issues?q=milestone%3A1.1.0).

#### Sharding support

https://github.com/doctrine/mongodb-odm/pull/1385

#### Custom Collections

https://github.com/doctrine/mongodb-odm/pull/1219

#### Event is dispatched for missing referenced documents

https://github.com/doctrine/mongodb-odm/pull/1336

#### Partial indexes

https://github.com/doctrine/mongodb-odm/pull/1303

#### More powerful lifecycle callbacks

https://github.com/doctrine/mongodb-odm/pull/1222

#### Ease using objects as search criterion

https://github.com/doctrine/mongodb-odm/pull/1363
https://github.com/doctrine/mongodb-odm/pull/1333

#### Read-Only mode for fetching documents

https://github.com/doctrine/mongodb-odm/pull/1403

#### EmbedMany and ReferenceMany fields included in the change set

https://github.com/doctrine/mongodb-odm/pull/1339

PHP 7 compatibility
-------------------

@todo

Upgrade Path
------------

#### PHP requirement changed

PHP 5.3, 5.4 and 5.5 support has been dropped due to their [end of life](http://php.net/eol.php)
(or getting close to it in case of 5.5).

#### preLoad lifecycle callback signature change

`preLoad` lifecycle callback now receives `PreLoadEventArgs` object instead of an array of data
passed by reference. For reasoning why the change was made please see relevant pull request<commit_msg>PHP 7 compatibility<commit_after>CHANGELOG for 1.1.x
===================

This changelog references the relevant changes done in 1.1 minor versions. If upgrading from
1.0.x branch, please review
[Upgrade Path](https://github.com/doctrine/mongodb-odm/blob/master/CHANGELOG-1.1.md#upgrade-path).

1.1.0
-----

All issues and pull requests in this release may be found under the
[1.1.0 milestone](https://github.com/doctrine/mongodb-odm/issues?q=milestone%3A1.1.0).

#### Sharding support

https://github.com/doctrine/mongodb-odm/pull/1385

#### Custom Collections

https://github.com/doctrine/mongodb-odm/pull/1219

#### Event is dispatched for missing referenced documents

https://github.com/doctrine/mongodb-odm/pull/1336

#### Partial indexes

https://github.com/doctrine/mongodb-odm/pull/1303

#### More powerful lifecycle callbacks

https://github.com/doctrine/mongodb-odm/pull/1222

#### Ease using objects as search criterion

https://github.com/doctrine/mongodb-odm/pull/1363
https://github.com/doctrine/mongodb-odm/pull/1333

#### Read-Only mode for fetching documents

https://github.com/doctrine/mongodb-odm/pull/1403

#### EmbedMany and ReferenceMany fields included in the change set

https://github.com/doctrine/mongodb-odm/pull/1339

PHP 7 compatibility
-------------------

While ODM still relies on legacy MongoDB driver (i.e. [ext-mongo](https://pecl.php.net/package/mongo))
it is possible to run ODM using PHP 7 and HHVM thanks to
[alcaeus/mongo-php-adapter](https://github.com/alcaeus/mongo-php-adapter) which provides old API
atop new [ext-mongodb](http://php.net/manual/en/mongodb.installation.php) driver and
[mongodb/mongo-php-library](https://github.com/mongodb/mongo-php-library) library. Until ODM 2.0 is
released this is officially supported way and is included in our test suite.

Upgrade Path
------------

#### PHP requirement changed

PHP 5.3, 5.4 and 5.5 support has been dropped due to their [end of life](http://php.net/eol.php)
(or getting close to it in case of 5.5).

#### preLoad lifecycle callback signature change

`preLoad` lifecycle callback now receives `PreLoadEventArgs` object instead of an array of data
passed by reference. For reasoning why the change was made please see relevant pull request
{'fraction_non_alphanumeric': 0.14325346784363177, 'fraction_numerical': 0.03278688524590164, 'mean_word_length': 4.065134099616858, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 25, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3898618', 'n_tokens_mistral': 1347, 'n_tokens_neox': 1244, 'n_words': 354}