Skip to content

Commit

Permalink
fixed parameter name
Browse files Browse the repository at this point in the history
  • Loading branch information
circulon committed Oct 30, 2024
1 parent 7e86c33 commit 97eaa57
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/masoniteorm/relationships/HasManyThrough.py
Original file line number Diff line number Diff line change
Expand Up @@ -135,13 +135,13 @@ def register_related(self, key, model, collection):

model.add_relation({key: related if related else None})

def get_related(self, query, relation, eagers=None, callback=None):
def get_related(self, current_builder, relation, eagers=None, callback=None):
"""
Get a Collection to hydrate the models for the distant table with
Used when eager loading the model attribute
Arguments
query (QueryBuilder): The source models QueryBuilder object
current_builder (QueryBuilder): The source models QueryBuilder object
relation (HasManyThrough): this relationship object
eagers (Any):
callback (Any):
Expand Down

0 comments on commit 97eaa57

Please sign in to comment.