Commit 38a2fb64 authored by Jens Segers's avatar Jens Segers

Update readme

parent e0e93963
...@@ -80,7 +80,7 @@ use Jenssegers\Mongodb\Eloquent\Model as Eloquent; ...@@ -80,7 +80,7 @@ use Jenssegers\Mongodb\Eloquent\Model as Eloquent;
class User extends Eloquent {} class User extends Eloquent {}
``` ```
If you are using hybrid relations, your MySQL classes should now extend the original Eloquent model class `Illuminate\Database\Eloquent\Model` instead of the removed `Jenssegers\Eloquent\Model`. Instead it should now use the `Jenssegers\Mongodb\Eloquent\HybridRelations` trait. This should make things more clear as there is only one single model class in this package. If you are using hybrid relations, your MySQL classes should now extend the original Eloquent model class `Illuminate\Database\Eloquent\Model` instead of the removed `Jenssegers\Eloquent\Model`. Instead use the new `Jenssegers\Mongodb\Eloquent\HybridRelations` trait. This should make things more clear as there is only one single model class in this package.
```php ```php
use Jenssegers\Mongodb\Eloquent\HybridRelations; use Jenssegers\Mongodb\Eloquent\HybridRelations;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment