Skip to content

[2.0] Change Sets #14

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 26 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
26 commits
Select commit Hold shift + click to select a range
d98da60
[2.0] Bump PHP to 7.0
malarzm Aug 5, 2016
bd16501
Merge pull request #1485 from malarzm/bump-php
malarzm Aug 5, 2016
50605d6
Merge branch 'master' into odm-ng
malarzm Aug 5, 2016
d71ac29
[2.0] Bump PHP to 7.0
malarzm Aug 5, 2016
6e8a614
Remove DiscriminatorField's name and fieldName
malarzm Jul 30, 2016
32ea93e
Remove deprecated argument from DocumentPersister::refresh
malarzm Jul 30, 2016
84ca7f9
Remove increment type
malarzm Jul 30, 2016
d0ff8b7
Remove requireIndexes and stuff thereto related
malarzm Jul 30, 2016
ba2619d
Merge branch 'odm-ng' of github.com:doctrine/mongodb-odm into odm-ng
malarzm Jan 14, 2017
0a3021a
Merge branch 'master' into odm-ng
malarzm Jan 14, 2017
4610774
Remove deprecated annotations
malarzm Jul 30, 2016
3aea5af
Remove DoctrineAnnotations file and its code references
malarzm Jan 14, 2017
713690e
Start preparing upgrade path
malarzm Jan 14, 2017
580eced
Reflect changes in the documentation
malarzm Jan 14, 2017
7fc8da8
Merge pull request #1471 from malarzm/remove-annotations
malarzm Jan 15, 2017
a50f102
Prototype change sets
malarzm Jun 15, 2016
a0e513b
Move calculating change sets from UnitOfWork
malarzm Jun 18, 2016
bc7ddc3
BCish introduction of ObjectChangeSet
malarzm Jun 18, 2016
caafd26
Use CollectionChangeSet
malarzm Jun 18, 2016
e37d35c
Use ObjectChangeSet for modified embedded documents
malarzm Jun 18, 2016
2bed387
Implement CollectionChangeSet::getChangedObjects
malarzm Jun 18, 2016
e58970e
Stop using [0] and [1] to get change set values
malarzm Jun 18, 2016
7fabd6f
Add helper methods to ObjectChangeSet
malarzm Jun 18, 2016
33781a7
Refactoring
malarzm Jun 19, 2016
10fe327
Revisit PHPDocs
malarzm Jun 19, 2016
dc0deea
Remove getting change set values with [0] and [1]
malarzm Jan 15, 2017
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 6 additions & 10 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ sudo: required
language: php

php:
- 5.6
- 7.0
- 7.1

Expand All @@ -21,10 +20,8 @@ env:

matrix:
include:
- php: 5.6
env: DRIVER_VERSION="1.5.8" SERVER_VERSION="3.0" COMPOSER_FLAGS="--prefer-lowest" KEY_ID="7F0CEB10"
- php: 5.6
env: DRIVER_VERSION="stable" SERVER_VERSION="3.2" KEY_ID="EA312927"
- php: 7.0
env: DRIVER_VERSION="stable" SERVER_VERSION="3.0" COMPOSER_FLAGS="--prefer-lowest"

before_install:
- sudo apt-key adv --keyserver ${KEY_SERVER} --recv ${KEY_ID}
Expand All @@ -40,14 +37,13 @@ install:
before_script:
- curl -XPUT http://localhost:8889/v1/sharded_clusters/myCluster --data @tests/sharded.json | python -m json.tool
- composer self-update
- if [[ ${TRAVIS_PHP_VERSION:0:2} == "5." ]]; then yes '' | pecl -q install -f mongo-${DRIVER_VERSION}; fi
- if [[ ${TRAVIS_PHP_VERSION:0:2} == "7." ]]; then pecl install -f mongodb-${DRIVER_VERSION}; fi
- if [[ ${TRAVIS_PHP_VERSION:0:2} == "7." ]]; then composer require "alcaeus/mongo-php-adapter=${ADAPTER_VERSION}" --ignore-platform-reqs; fi
- pecl install -f mongodb-${DRIVER_VERSION}
- composer require "alcaeus/mongo-php-adapter=${ADAPTER_VERSION}" --ignore-platform-reqs
- composer update ${COMPOSER_FLAGS}

script:
- ./vendor/bin/phpunit --coverage-clover=coverage.clover

after_script:
- wget https://scrutinizer-ci.com/ocular.phar
- php ocular.phar code-coverage:upload --format=php-clover coverage.clover
- wget https://scrutinizer-ci.com/ocular.phar
- php ocular.phar code-coverage:upload --format=php-clover coverage.clover
29 changes: 29 additions & 0 deletions CHANGELOG-2.0.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
CHANGELOG for 2.0.x
===================

Welcome to ODMng!

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

#### Deprecated code has been removed

Please review list of deprecated functionality we included with previous releases and adhere
to made suggestions:

* [1.1 release](https://github.com/doctrine/mongodb-odm/blob/master/CHANGELOG-1.1.md#deprecations)
* [1.2 release](https://github.com/doctrine/mongodb-odm/blob/master/CHANGELOG-1.2.md#deprecations)

#### `AnnotationDriver::registerAnnotationClasses()` has been removed

`registerAnnotationClasses()` method was registering ODM annotations in the `AnnotationRegistry`
and was recommended to be called during bootstrap of your application. The new way to ensure
annotations can be autoloaded properly is registering Composer's autoloader instead:

```php
use Doctrine\Common\Annotations\AnnotationRegistry;

$loader = require_once('path/to/vendor/autoload.php');

AnnotationRegistry::registerLoader([$loader, 'loadClass']);
```
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
{ "name": "Andreas Braun", "email": "[email protected]" }
],
"require": {
"php": "^5.6 || ^7.0",
"php": "^7.0",
"symfony/console": "~2.3|~3.0",
"doctrine/annotations": "~1.0",
"doctrine/collections": "~1.1",
Expand Down
Loading