Merge pull request #86 from adrielcodeco/master

fix namingStrategy for entity name
This commit is contained in:
Kononnable 2018-07-23 22:53:04 +02:00 committed by GitHub
commit 202457a1be
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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