Fix for #1795. @ManyToOne relations should not have an array type.
This commit is contained in:
parent
ce78c37874
commit
834d1f1d61
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user