Laravel-mongodb: Call to undefined method Illuminate\Database\Eloquent\Relations\BelongsTo::getOwnerKey()

Created on 7 Mar 2019  路  4Comments  路  Source: jenssegers/laravel-mongodb

 Classified::has('user.info')
                  ->limit(5)
                  ->get();

throws Call to undefined method Illuminate\Database\Eloquent\Relations\BelongsTo::getOwnerKey()

But its fine when i delete use HybridRelations ; from Classified model

bug

All 4 comments

Okey, i fixed with
protected $connection = "mysql";

It was fixed here. It linked with cnanges in laravel framework

@msacar , this issue is actual for you?

Was this page helpful?
0 / 5 - 0 ratings