diff --git a/src/drivers/AbstractDriver.ts b/src/drivers/AbstractDriver.ts index 7db7feb..fb9d855 100644 --- a/src/drivers/AbstractDriver.ts +++ b/src/drivers/AbstractDriver.ts @@ -372,7 +372,7 @@ export default abstract class AbstractDriver { ); let fieldType = ""; - if (isOneToMany) { + if (ownerRelation.relationType === "OneToMany") { fieldType = `${ownerColumns[0].tscType}[]`; } else { fieldType = ownerColumns[0].tscType;