fixing naming strategy bug - naming of related column in owner relation

This commit is contained in:
Kononnable 2018-07-31 22:18:14 +02:00
parent 71688d8343
commit b0678e6474

View File

@ -40,7 +40,8 @@ export abstract class AbstractDriver {
column2.relations
.filter(relation => {
return (
relation.ownerTable == entity.EntityName &&
relation.relatedTable ==
entity.EntityName &&
relation.ownerColumn == column.tsName
);
})