diff --git a/composer.json b/composer.json index af060bb3c..343d1b5f1 100644 --- a/composer.json +++ b/composer.json @@ -1,5 +1,5 @@ { - "name": "mongodb/laravel-mongodb", + "name": "grininc/laravel-mongodb", "description": "A MongoDB based Eloquent model and Query builder for Laravel", "keywords": [ "laravel", diff --git a/src/Eloquent/HybridRelations.php b/src/Eloquent/HybridRelations.php index 5c058f50f..be20327ee 100644 --- a/src/Eloquent/HybridRelations.php +++ b/src/Eloquent/HybridRelations.php @@ -226,7 +226,7 @@ public function morphTo($name = null, $type = null, $id = null, $ownerKey = null $this->newQuery(), $this, $id, - $ownerKey ?: $this->getKeyName(), + $ownerKey, $type, $name, );