Skip to content

Commit

Permalink
fixed eager load
Browse files Browse the repository at this point in the history
  • Loading branch information
josephmancuso committed Sep 1, 2024
1 parent 8c9a6bb commit bff9d8b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/masoniteorm/query/QueryBuilder.py
Original file line number Diff line number Diff line change
Expand Up @@ -1959,7 +1959,7 @@ def _register_relationships_to_model(
else:
model.add_relation({relation_key: map_related or None})
else:
hydrated_model.add_relation({relation_key: map_related or None})
hydrated_model.add_relation({relation_key: related_result or None})
return self

def _map_related(self, related_result, related):
Expand Down

0 comments on commit bff9d8b

Please sign in to comment.