Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Macros are appended multiple times into Model __passthrough__ #799

Closed
federicoparroni opened this issue Oct 4, 2022 · 0 comments · Fixed by #800
Closed

Macros are appended multiple times into Model __passthrough__ #799

federicoparroni opened this issue Oct 4, 2022 · 0 comments · Fixed by #800
Labels
bug An existing feature is not working as intended

Comments

@federicoparroni
Copy link
Contributor

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):

  • OS: Linux
  • Version: Ubuntu 22.04

What database are you using?

  • Type: [MySQL]
  • Version [14.14 Distrib 5.7.30, for Linux (x86_64) using EditLine wrapper]
  • Masonite ORM [2.18.5]
@federicoparroni federicoparroni added the bug An existing feature is not working as intended label Oct 4, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug An existing feature is not working as intended
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant