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

Static functions and DB Facade #67

Closed
josiahmann opened this issue Jun 29, 2020 · 3 comments
Closed

Static functions and DB Facade #67

josiahmann opened this issue Jun 29, 2020 · 3 comments

Comments

@josiahmann
Copy link

Hey team,

Loving the package so far.

Have you created anything for automatically setting the connection when using the DB:: facade? Would you just add that to the "switch_tenant_tasks" or override the original Database Provider?

@masterix21
Copy link
Collaborator

@josiahmann
Copy link
Author

Thanks,

I am using the SwitchTenantDatabaseTask, but the DB facade was returning the landlord db... maybe I just need to change my default connection to 'tenant'? That seems to do the trick...

@masterix21
Copy link
Collaborator

Yes, i'm talking of it here: #59

I think that if you use a tenant, it should be the default connection (and not the landlord), but changing the default connection seems to be wrong for @freekmurze, but at the moment seems to be a solution (for me).

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

No branches or pull requests

2 participants