@spinajs/orm
Advanced tools
Comparing version 2.0.314 to 2.0.315
@@ -134,2 +134,10 @@ "use strict"; | ||
} | ||
// mark foreign key columns based on relation decorators ( if not foreign key is set in db explicit ) | ||
// without this update / insert operations with populated data would fail | ||
descriptor.Relations.forEach((r) => { | ||
const c = d.Columns.find((c) => c.Name === r.ForeignKey); | ||
if (c) { | ||
c.IsForeignKey = true; | ||
} | ||
}); | ||
/** | ||
@@ -136,0 +144,0 @@ * Add any other converted that is not set by decorators, but is set in container |
@@ -128,2 +128,10 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { | ||
} | ||
// mark foreign key columns based on relation decorators ( if not foreign key is set in db explicit ) | ||
// without this update / insert operations with populated data would fail | ||
descriptor.Relations.forEach((r) => { | ||
const c = d.Columns.find((c) => c.Name === r.ForeignKey); | ||
if (c) { | ||
c.IsForeignKey = true; | ||
} | ||
}); | ||
/** | ||
@@ -130,0 +138,0 @@ * Add any other converted that is not set by decorators, but is set in container |
{ | ||
"name": "@spinajs/orm", | ||
"version": "2.0.314", | ||
"version": "2.0.315", | ||
"description": "framework orm module", | ||
@@ -58,6 +58,6 @@ "main": "lib/cjs/index.js", | ||
"dependencies": { | ||
"@spinajs/configuration-common": "^2.0.314", | ||
"@spinajs/di": "^2.0.314", | ||
"@spinajs/exceptions": "^2.0.314", | ||
"@spinajs/log-common": "^2.0.314", | ||
"@spinajs/configuration-common": "^2.0.315", | ||
"@spinajs/di": "^2.0.315", | ||
"@spinajs/exceptions": "^2.0.315", | ||
"@spinajs/log-common": "^2.0.315", | ||
"glob": "^8.1.0", | ||
@@ -64,0 +64,0 @@ "glob-to-regexp": "^0.4.1", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
1311323
17642