Fixing missed from.
This commit is contained in:
parent
65cddae9da
commit
649025ca12
|
@ -390,7 +390,7 @@ class InternalBuilder {
|
|||
const from = relationship.from,
|
||||
to = relationship.to
|
||||
// @ts-ignore
|
||||
this.orOn(`${fromTable}.${from}`, "=", `${toAlias}.${to}`)
|
||||
this.orOn(`${fromAlias}.${from}`, "=", `${toAlias}.${to}`)
|
||||
}
|
||||
})
|
||||
} else {
|
||||
|
|
Loading…
Reference in New Issue