Skip to content

Commit c8e25af

Browse files
committed
Drop the old upgade notes
1 parent 2d2704c commit c8e25af

File tree

1 file changed

+0
-12
lines changed

1 file changed

+0
-12
lines changed

README.md

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -5,18 +5,6 @@ Laravel MongoDB
55

66
An Eloquent model and Query builder with support for MongoDB, using the original Laravel API. *This library extends the original Laravel classes, so it uses exactly the same methods.*
77

8-
### Upgrading from v1 to v2
9-
10-
In this new version, embedded documents are no longer saved to the parent model using an attribute with a leading underscore. If you have a relation like `embedsMany('Book')`, these books are now stored under `$model['books']` instead of `$model['_books']`. This was changed to make embedded relations less confusing for new developers.
11-
12-
If you want to upgrade to this new version without having to change all your existing database objects, you can modify your embedded relations to use a non-default local key including the underscore:
13-
14-
```php
15-
$this->embedsMany('Book', '_books');
16-
```
17-
18-
Read the full changelog at https://github.com/jenssegers/laravel-mongodb/releases/tag/v2.0.0
19-
208
Table of contents
219
-----------------
2210
* [Installation](#installation)

0 commit comments

Comments
 (0)