remult 0.27.5-next.0 → 0.27.5-next.1

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.
@@ -251,8 +251,8 @@ class KnexEntityDataProvider {
251
251
  newId = result[0];
252
252
  }
253
253
  else {
254
- let result = await insert.returning(this.entity.idMetadata.field.key);
255
- newId = result[0][this.entity.idMetadata.field.key];
254
+ let result = await insert.returning(this.entity.idMetadata.field.dbName);
255
+ newId = result[0][this.entity.idMetadata.field.dbName];
256
256
  }
257
257
  return this.find({
258
258
  where: new Filter((x) => x.isEqualTo(this.entity.idMetadata.field, newId)),