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

fix: multiple database connection with autoLoadEntities #62

Merged
merged 4 commits into from
Feb 25, 2022
Merged

fix: multiple database connection with autoLoadEntities #62

merged 4 commits into from
Feb 25, 2022

Conversation

tsangste
Copy link
Contributor

As a user who does not use autoLoadEntities I discovered today multiple database connections currently does not work with it. I have added some extra tests around autoLoadEntities and created MikroOrmEntitiesStorage to manage them.

I also updated forFeature to work with options and contextName param.

…tions where it does not correctly register the providers for each database connection. Also update `forFeature` to accept different combination for contextName with option or not.
Copy link
Member

@B4nan B4nan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thanks!

tests/.eslintrc.js Outdated Show resolved Hide resolved
tests/mikro-orm.module.test.ts Outdated Show resolved Hide resolved
@tsangste tsangste requested a review from B4nan February 24, 2022 19:06
@B4nan B4nan changed the title Multiple database connection with autoLoadEntities fix: multiple database connection with autoLoadEntities Feb 25, 2022
@B4nan B4nan merged commit 7dfc097 into mikro-orm:master Feb 25, 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.

2 participants