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

Models with relations from different DBS #2348

Closed
jsagethuboo opened this issue Dec 20, 2022 · 1 comment
Closed

Models with relations from different DBS #2348

jsagethuboo opened this issue Dec 20, 2022 · 1 comment

Comments

@jsagethuboo
Copy link

Hello, do you have a solution/implementation example of having models with relationships between different databases?

For example we were planning to use inject models into repositories with the correct DB instance to which they correlate to example:

injectedModel.withGraphFetched('[relationOnDifferentDB, relationOnSameDB]')
but it seems this assumes that all relations are on the same DB connection which was injected into the model which fails, has anyone encountered this issue or found a good solution?

@lehni
Copy link
Collaborator

lehni commented Apr 13, 2023

Closing this in favour of #2349 which has more information.

@lehni lehni closed this as completed Apr 13, 2023
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