Skip to content

Commit f3dd6d2

Browse files
committed
fix relation
1 parent cd539d8 commit f3dd6d2

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

tests/_support/Models/UserModel.php

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,14 @@ public function bestPost(): Relation
8282

8383
public function address(): Relation
8484
{
85-
return $this->hasOneThrough(AddressModel::class, CompanyModel::class);
85+
return $this->hasOneThrough(
86+
AddressModel::class,
87+
CompanyModel::class,
88+
'address_id',
89+
'id',
90+
'id',
91+
'company_id',
92+
);
8693
}
8794

8895
public function missingReturnType()

0 commit comments

Comments
 (0)