We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5d693ab commit abc4b3aCopy full SHA for abc4b3a
src/index.ts
@@ -1,3 +1,12 @@
1
+import { Container } from 'typedi';
2
+import { ConnectionManager } from 'typeorm';
3
+
4
+/**
5
+ * We need to set imported TypeORM classes before requesting them, otherwise we
6
+ * would receive a "ServiceNotFoundError" above TypeDI 0.9.1.
7
+ */
8
+Container.set({ id: ConnectionManager, type: ConnectionManager });
9
10
export * from './decorators/InjectConnection';
11
export * from './decorators/InjectManager';
12
export * from './decorators/InjectRepository';
0 commit comments