From 5c34bac4a944d81acb88d2480435bb20c1e2ad10 Mon Sep 17 00:00:00 2001 From: pii Date: Thu, 12 Jul 2018 17:14:07 -0300 Subject: [PATCH] fix namingStrategy for entity name --- src/drivers/AbstractDriver.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/drivers/AbstractDriver.ts b/src/drivers/AbstractDriver.ts index 9baa5c5..4885515 100644 --- a/src/drivers/AbstractDriver.ts +++ b/src/drivers/AbstractDriver.ts @@ -56,7 +56,7 @@ export abstract class AbstractDriver { } changeEntityNames(dbModel: DatabaseModel) { dbModel.entities.forEach(entity => { - let newName = this.namingStrategy.columnName(entity.EntityName); + let newName = this.namingStrategy.entityName(entity.EntityName); dbModel.entities.forEach(entity2 => { entity2.Columns.forEach(column => { column.relations.forEach(relation => {