remult 0.23.0-exp.29 → 0.23.0-exp.30

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.
@@ -73,7 +73,7 @@ export declare const columnsOfType: Map<any, columnInfo[]>;
73
73
  export declare function createOldEntity<T>(entity: ClassType<T>, remult: Remult): EntityFullInfo<T>;
74
74
  declare abstract class rowHelperBase<T> {
75
75
  protected columnsInfo: FieldOptions[];
76
- protected instance: T;
76
+ instance: T;
77
77
  protected remult: Remult;
78
78
  protected isNewRow: boolean;
79
79
  _error: string;
@@ -239,7 +239,7 @@ export class RepositoryImplementation {
239
239
  let ref;
240
240
  if (typeof id === 'object') {
241
241
  ref = this.getRefForExistingRow(id, this.metadata.idMetadata.getId(id));
242
- Object.assign(id, entity);
242
+ Object.assign(ref.instance, entity);
243
243
  }
244
244
  else
245
245
  ref = this.getRefForExistingRow(entity, id);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "remult",
3
- "version": "0.23.0-exp.29",
3
+ "version": "0.23.0-exp.30",
4
4
  "description": "A CRUD framework for full-stack TypeScript",
5
5
  "types": "index.d.ts",
6
6
  "module": "esm/index.js",
@@ -73,7 +73,7 @@ export declare const columnsOfType: Map<any, columnInfo[]>;
73
73
  export declare function createOldEntity<T>(entity: ClassType<T>, remult: Remult): EntityFullInfo<T>;
74
74
  declare abstract class rowHelperBase<T> {
75
75
  protected columnsInfo: FieldOptions[];
76
- protected instance: T;
76
+ instance: T;
77
77
  protected remult: Remult;
78
78
  protected isNewRow: boolean;
79
79
  _error: string;
@@ -372,7 +372,7 @@ var RepositoryImplementation = /** @class */ (function () {
372
372
  }
373
373
  if (typeof id === 'object') {
374
374
  ref = this.getRefForExistingRow(id, this.metadata.idMetadata.getId(id));
375
- Object.assign(id, entity);
375
+ Object.assign(ref.instance, entity);
376
376
  }
377
377
  else
378
378
  ref = this.getRefForExistingRow(entity, id);