Skip to content

Commit

Permalink
fix(core): alias joins on non persistent properties
Browse files Browse the repository at this point in the history
Closes #4773
  • Loading branch information
B4nan committed Oct 2, 2023
1 parent dba35ac commit d70d323
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/knex/src/query/QueryBuilderHelper.ts
Original file line number Diff line number Diff line change
Expand Up @@ -234,7 +234,7 @@ export class QueryBuilderHelper {
return;
}

const left = join.prop.persist === false ? primaryKey : `${join.ownerAlias}.${primaryKey}`;
const left = `${join.ownerAlias}.${primaryKey}`;
conditions.push(`${this.knex.ref(left)} = ${this.knex.ref(right)}`);
});

Expand Down

0 comments on commit d70d323

Please sign in to comment.