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

Use the container for dba/counts model instantiation #11165

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

bleistivt
Copy link
Contributor

Currently the counts method can't be used if you want to use autowired dependencies in your models contructor, because it is called using new.

This checks if a class is available through the container first.

@bleistivt bleistivt changed the title Patch 40 Use the container for dba/counts model instantiation Jul 10, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant