Skip to content

Commit

Permalink
Merge pull request #800 from federicoparroni/fix-799
Browse files Browse the repository at this point in the history
Fix #799
  • Loading branch information
josephmancuso committed Oct 7, 2022
2 parents 0c41636 + 2bd70b2 commit f5b9f31
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/masoniteorm/models/Model.py
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ class Model(TimeStampsMixin, ObservesEvents, metaclass=ModelMeta):
"""Pass through will pass any method calls to the model directly through to the query builder.
Anytime one of these methods are called on the model it will actually be called on the query builder class.
"""
__passthrough__ = [
__passthrough__ = set((
"add_select",
"aggregate",
"all",
Expand Down Expand Up @@ -258,7 +258,7 @@ class Model(TimeStampsMixin, ObservesEvents, metaclass=ModelMeta):
"where_doesnt_have",
"with_",
"with_count",
]
))

__cast_map__ = {}

Expand Down Expand Up @@ -369,7 +369,7 @@ def boot(self):
self.append_passthrough(list(self.get_builder()._macros.keys()))

def append_passthrough(self, passthrough):
self.__passthrough__ += passthrough
self.__passthrough__.update(passthrough)
return self

@classmethod
Expand Down

0 comments on commit f5b9f31

Please sign in to comment.