@spinajs/orm
Advanced tools
Comparing version 2.0.237 to 2.0.238
@@ -828,3 +828,2 @@ "use strict"; | ||
relInstance.execute(callback); | ||
relInstance.Name = relation; | ||
this._relations.push(relInstance); | ||
@@ -831,0 +830,0 @@ return this; |
@@ -23,2 +23,3 @@ import { IRelationDescriptor, IModelDescriptor, ForwardRefFunction, ISelectQueryBuilder } from './interfaces.js'; | ||
Name: string; | ||
Descriptor: IRelationDescriptor; | ||
} | ||
@@ -35,3 +36,4 @@ export declare abstract class OrmRelation implements IOrmRelation { | ||
protected _driver: OrmDriver; | ||
Name: string; | ||
get Name(): string; | ||
get Descriptor(): IRelationDescriptor; | ||
get Alias(): string; | ||
@@ -38,0 +40,0 @@ constructor(_container: Container, _query: ISelectQueryBuilder, _description: IRelationDescriptor, parentRelation?: OrmRelation); |
@@ -29,2 +29,8 @@ "use strict"; | ||
let OrmRelation = class OrmRelation { | ||
get Name() { | ||
return this._description.Name; | ||
} | ||
get Descriptor() { | ||
return this._description; | ||
} | ||
get Alias() { | ||
@@ -31,0 +37,0 @@ return this.parentRelation ? `${this.parentRelation.Alias}.${this._separator}${this._description.Name}${this._separator}` : `${this._separator}${this._description.Name}${this._separator}`; |
@@ -822,3 +822,2 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { | ||
relInstance.execute(callback); | ||
relInstance.Name = relation; | ||
this._relations.push(relInstance); | ||
@@ -825,0 +824,0 @@ return this; |
@@ -23,2 +23,3 @@ import { IRelationDescriptor, IModelDescriptor, ForwardRefFunction, ISelectQueryBuilder } from './interfaces.js'; | ||
Name: string; | ||
Descriptor: IRelationDescriptor; | ||
} | ||
@@ -35,3 +36,4 @@ export declare abstract class OrmRelation implements IOrmRelation { | ||
protected _driver: OrmDriver; | ||
Name: string; | ||
get Name(): string; | ||
get Descriptor(): IRelationDescriptor; | ||
get Alias(): string; | ||
@@ -38,0 +40,0 @@ constructor(_container: Container, _query: ISelectQueryBuilder, _description: IRelationDescriptor, parentRelation?: OrmRelation); |
@@ -26,2 +26,8 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { | ||
let OrmRelation = class OrmRelation { | ||
get Name() { | ||
return this._description.Name; | ||
} | ||
get Descriptor() { | ||
return this._description; | ||
} | ||
get Alias() { | ||
@@ -28,0 +34,0 @@ return this.parentRelation ? `${this.parentRelation.Alias}.${this._separator}${this._description.Name}${this._separator}` : `${this._separator}${this._description.Name}${this._separator}`; |
{ | ||
"name": "@spinajs/orm", | ||
"version": "2.0.237", | ||
"version": "2.0.238", | ||
"description": "framework orm module", | ||
@@ -58,6 +58,6 @@ "main": "lib/cjs/index.js", | ||
"dependencies": { | ||
"@spinajs/configuration-common": "^2.0.237", | ||
"@spinajs/di": "^2.0.237", | ||
"@spinajs/exceptions": "^2.0.237", | ||
"@spinajs/log-common": "^2.0.237", | ||
"@spinajs/configuration-common": "^2.0.238", | ||
"@spinajs/di": "^2.0.238", | ||
"@spinajs/exceptions": "^2.0.238", | ||
"@spinajs/log-common": "^2.0.238", | ||
"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
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
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
1288839
17281