Skip to content

Commit 7bb7e8a

Browse files
authored
Merge pull request #84 from iRaziul/3.x
Fix return type for `continent` relation
2 parents cc04954 + 107fd41 commit 7bb7e8a

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

packages/airlines/src/Models/Airline.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
namespace Squire\Models;
44

55
use Illuminate\Database\Eloquent\Relations\BelongsTo;
6+
use Illuminate\Database\Eloquent\Relations\HasOneThrough;
67
use Squire\Model;
78

89
class Airline extends Model
@@ -22,7 +23,7 @@ public function country(): BelongsTo
2223
return $this->belongsTo(Country::class);
2324
}
2425

25-
public function continent(): BelongsTo
26+
public function continent(): HasOneThrough
2627
{
2728
return $this->hasOneThrough(Continent::class, Country::class);
2829
}

0 commit comments

Comments
 (0)