lakutata
Version:
An IoC-based universal application framework.
43 lines (35 loc) • 1 kB
JavaScript
/* Build Date: Mon Jan 05 2026 23:52:23 GMT+0800 (China Standard Time) */
import { a as e, O as t } from "./Package.internal.51.mjs";
var a = {};
Object.defineProperty(a, "__esModule", {
value: true
});
var r = a.ManyToMany = s;
const o = e();
const n = t;
function s(e, t, a) {
let r;
if (n.ObjectUtils.isObject(t)) {
a = t;
} else {
r = t;
}
return function(t, n) {
if (!a) a = {};
let s = a.lazy === true;
if (!s && Reflect && Reflect.getMetadata) {
const e = Reflect.getMetadata("design:type", t, n);
if (e && typeof e.name === "string" && e.name.toLowerCase() === "promise") s = true;
}
(0, o.getMetadataArgsStorage)().relations.push({
target: t.constructor,
propertyName: n,
relationType: "many-to-many",
isLazy: s,
type: e,
inverseSideProperty: r,
options: a
});
};
}
export { r as M };