framework-do-dede 3.0.21 → 3.0.23
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -109,7 +109,10 @@ export class Entity {
|
|
|
109
109
|
// @ts-ignore
|
|
110
110
|
if (this.constructor.strategyId) {
|
|
111
111
|
// @ts-ignore
|
|
112
|
-
this[`get${this.constructor.strategyId[0].toUpperCase()}${this.constructor.strategyId.slice(1)}`]
|
|
112
|
+
if (!this[`get${this.constructor.strategyId[0].toUpperCase()}${this.constructor.strategyId.slice(1)}`]) {
|
|
113
|
+
// @ts-ignore
|
|
114
|
+
this[`get${this.constructor.strategyId[0].toUpperCase()}${this.constructor.strategyId.slice(1)}`] = () => this[this.constructor.strategyId].getValue();
|
|
115
|
+
}
|
|
113
116
|
}
|
|
114
117
|
for (const property of Object.keys(this)) {
|
|
115
118
|
if (typeof property === 'function')
|
|
@@ -117,6 +120,8 @@ export class Entity {
|
|
|
117
120
|
// @ts-ignore
|
|
118
121
|
if (this.constructor.strategyId === property)
|
|
119
122
|
continue;
|
|
123
|
+
if (this[property] instanceof Entity)
|
|
124
|
+
continue;
|
|
120
125
|
let prefixName = null;
|
|
121
126
|
// @ts-ignore
|
|
122
127
|
if (this.constructor.propertiesConfigs && this.constructor.propertiesConfigs[property] && this.constructor.propertiesConfigs[property].prefix) {
|