From 5a95d67648175aaab1a7d2879940c231a3924662 Mon Sep 17 00:00:00 2001 From: David Esquivel Date: Wed, 5 Jun 2024 11:00:22 -0700 Subject: [PATCH 1/2] [TL-1503] Fix morphTo relationship method --- src/Eloquent/HybridRelations.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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, ); From 43860eca27c6db812b3586ce6b85c9139bb86887 Mon Sep 17 00:00:00 2001 From: David Esquivel Date: Wed, 5 Jun 2024 11:25:06 -0700 Subject: [PATCH 2/2] [TL-1503] Update composer.json package name --- composer.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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",