diff --git a/src/drivers/AbstractDriver.ts b/src/drivers/AbstractDriver.ts index 4885515..c72895e 100644 --- a/src/drivers/AbstractDriver.ts +++ b/src/drivers/AbstractDriver.ts @@ -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 ); })