MasoniteFramework / orm

Masonite ORM is a beautiful Python ORM. It's also a nearly drop in replacement of the Orator ORM
https://orm.masoniteproject.com
MIT License
165 stars 48 forks source link

Macros are appended multiple times into Model `__passthrough__` #799

Closed federicoparroni closed 2 years ago

federicoparroni commented 2 years ago

Describe the bug Macros are appended more than once in the Model __passthrough__.

To Reproduce Steps to reproduce the behavior:

  1. Declare a model subclass Example which extends a scope with macros, for example SoftDeleteScope
  2. Import the class Example in some files
  3. print(len(Example.__passthrough__)) will print more items than expected

Expected behavior __passthrough__ should not increase in size indefinitely.

Desktop (please complete the following information):

What database are you using?