fix namingStrategy for entity name

This commit is contained in:
pii 2018-07-12 17:14:07 -03:00
parent f5eac4e064
commit 5c34bac4a9

View File

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