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