lambdaorm-base
Advanced tools
Comparing version 0.1.24 to 0.1.25
{ | ||
"name": "lambdaorm-base", | ||
"version": "0.1.24", | ||
"version": "0.1.25", | ||
"description": "ORM", | ||
@@ -5,0 +5,0 @@ "author": "Flavio Lionel Rita <flaviolrita@proton.me>", |
@@ -84,3 +84,3 @@ "use strict"; | ||
const propertyName = prop.name + this.helper.str.capitalize(fk.name); | ||
const entityName = this.helper.str.capitalize(prop.name); | ||
const entityName = this.getEntityName(prop.name); | ||
const required = (prop.type.nullable === false && prop.type.undefinable === false); | ||
@@ -111,3 +111,3 @@ const length = this.getLength(fk.type); | ||
if (pk && pk.type) { | ||
const entityName = this.helper.str.capitalize(prop.name); | ||
const entityName = this.getEntityName(prop.name); | ||
const relatedEntities = this.typeToEntities(entityName, prop.type); | ||
@@ -114,0 +114,0 @@ const relatedEntity = relatedEntities.find(p => p.name === entityName); |
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
224179