UNPKG

lakutata

Version:

An IoC-based universal application framework.

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