[Fix] Global EntityManager Context Issue in Mikro ORM Configuration #8700
Labels
priority: low
This issue is very low priority
scope: server
Server / API scope
type: bug 🐛
Something isn't working
Description:
The allowGlobalContext configuration is causing issues during the API Core startup when using Mikro ORM. Specifically, the error occurs because the global EntityManager is being used for context-specific actions, which is disallowed. This issue is severe as it could be contributing to performance problems in the project.
Steps to Reproduce:
.env
.yarn start:api:core
command.Temporary Fix Attempted:
The allowGlobalContext: true option was temporarily applied to resolve the issue. However, it was reverted because:
Root Cause:
The project is using the global EntityManager for context-specific actions instead of using fork() or providing a scoped EntityManager instance.
Proposed Solution:
The text was updated successfully, but these errors were encountered: