Skip to content

Commit

Permalink
added get_related method to Collection class
Browse files Browse the repository at this point in the history
  • Loading branch information
josephmancuso committed Nov 28, 2024
1 parent 145e77d commit 0eb7659
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/masoniteorm/collection/Collection.py
Original file line number Diff line number Diff line change
Expand Up @@ -587,4 +587,7 @@ def __call__(self, *args):
return self

related = self._items[0].__dict__['related']
return related.apply_query(self._items[0].builder)
return related.apply_query(self._items[0].builder)

def get_related(self):
return self._related

0 comments on commit 0eb7659

Please sign in to comment.