diff --git a/src/masoniteorm/query/QueryBuilder.py b/src/masoniteorm/query/QueryBuilder.py index 4fe68c16..4e9a663b 100644 --- a/src/masoniteorm/query/QueryBuilder.py +++ b/src/masoniteorm/query/QueryBuilder.py @@ -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):