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

feat(core): allow setting a custom scope for the EntityManager provider #9

Merged
merged 7 commits into from
Sep 25, 2020
Merged

Conversation

jsprw
Copy link
Contributor

@jsprw jsprw commented Sep 24, 2020

The reason that I have added new types is because you can't access the ModuleOptions in the async callback while that is required when creating the provider.

I have also added a few tests to check if the scope option works.

@B4nan
Copy link
Member

B4nan commented Sep 24, 2020

Looking good, can you also add a note to the readme?

@jsprw
Copy link
Contributor Author

jsprw commented Sep 24, 2020

Added!

@B4nan B4nan merged commit c11e0ea into mikro-orm:master Sep 25, 2020
@B4nan
Copy link
Member

B4nan commented Sep 25, 2020

thanks!

shipped as 4.2.0

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

2 participants