Skip to content

Commit

Permalink
Revert changes
Browse files Browse the repository at this point in the history
  • Loading branch information
staudenmeir committed Sep 24, 2024
1 parent d63699f commit edf4f62
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion tests/Models/Comment.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ public function countryWithCustomThroughTable(): HasOneDeep

public function replies(): HasMany
{
return $this->hasMany(Comment::class, 'parent_id');
return $this->hasMany(static::class, 'parent_id');
}

public function rootPost(): HasOneDeep
Expand Down
2 changes: 1 addition & 1 deletion tests/Models/User.php
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ public function permissionsFromRelations(): HasManyDeep

public function players(): HasManyDeep
{
return $this->hasManyDeep(User::class, [Club::class, Team::class]);
return $this->hasManyDeep(static::class, [Club::class, Team::class]);
}

public function posts(): HasMany
Expand Down

0 comments on commit edf4f62

Please sign in to comment.