Skip to content

Commit e6e95f3

Browse files
committed
Add new readme section for upgrading
1 parent e34be78 commit e6e95f3

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

README.md

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ An Eloquent model and Query builder with support for MongoDB, using the original
88
Table of contents
99
-----------------
1010
* [Installation](#installation)
11+
* [Upgrading](#upgrading)
1112
* [Configuration](#configuration)
1213
* [Eloquent](#eloquent)
1314
* [Optional: Alias](#optional-alias)
@@ -64,6 +65,25 @@ $capsule->getDatabaseManager()->extend('mongodb', function($config)
6465
});
6566
```
6667

68+
Upgrading
69+
---------
70+
71+
### Upgrading 2.2.x to 3.0.x
72+
73+
In this new major release which supports the new mongodb PHP extension, we also moved the location of the Model class from:
74+
75+
```
76+
Jenssegers\Mongodb\Model
77+
```
78+
79+
To:
80+
81+
```
82+
Jenssegers\Mongodb\Eloquent\Model
83+
```
84+
85+
So please use the new namespace at the top of your model files, or in your alias.
86+
6787
Configuration
6888
-------------
6989

0 commit comments

Comments
 (0)