From 722b3aa74f9737c08deffdbe60a893aec4cfa710 Mon Sep 17 00:00:00 2001 From: Jack Wilkinson <31214002+jaxwilko@users.noreply.github.com> Date: Thu, 13 Oct 2022 00:13:18 +0100 Subject: [PATCH] Fixed bug when dynamically adding hasMany* relations --- src/Database/Concerns/HasRelationships.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Database/Concerns/HasRelationships.php b/src/Database/Concerns/HasRelationships.php index 9d57f23df..c79e63e1e 100644 --- a/src/Database/Concerns/HasRelationships.php +++ b/src/Database/Concerns/HasRelationships.php @@ -949,7 +949,7 @@ public function addAttachManyRelation(string $name, array $config): void */ public function addHasOneThroughRelation(string $name, array $config): void { - $this->addRelation('HasOneThrough', $name, $config); + $this->addRelation('hasOneThrough', $name, $config); } /** @@ -959,7 +959,7 @@ public function addHasOneThroughRelation(string $name, array $config): void */ public function addHasManyThroughRelation(string $name, array $config): void { - $this->addRelation('HasManyThrough', $name, $config); + $this->addRelation('hasManyThrough', $name, $config); } /**