Revert "chore(): Upgrade mikro orm (#13390)" (#13449)

This reverts commit a095245d71.
This commit is contained in:
Adrien de Peretti authored and GitHub committed 2025-09-09 20:06:31 +02:00
1 parent ccff121691
commit 0b55295fc7
60 files changed
+711 -862

No files matched your search

@@ -20,7 +20,11 @@ export function setFindMethods<T>(klass: Constructor<T>, entity: any) {
if (!("strategy" in findOptions_.options)) {
if (findOptions_.options.limit != null || findOptions_.options.offset) {
Object.assign(findOptions_.options, {
strategy: LoadStrategy.BALANCED,
strategy: LoadStrategy.SELECT_IN,
})
} else {
Object.assign(findOptions_.options, {
strategy: LoadStrategy.JOINED,
})
}
}
@@ -99,7 +103,7 @@ export function setFindMethods<T>(klass: Constructor<T>, entity: any) {
if (!("strategy" in findOptions_.options)) {
Object.assign(findOptions_.options, {
strategy: LoadStrategy.BALANCED,
strategy: LoadStrategy.SELECT_IN,
})
}