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 => {