fix many to many reference query

This commit is contained in:
dswbx
2025-02-27 11:43:12 +01:00
parent dd48962901
commit 3e28124494
7 changed files with 22 additions and 19 deletions

View File

@@ -107,7 +107,7 @@ export class ManyToOneRelation extends EntityRelation<typeof ManyToOneRelation.s
return field;
}
private queryInfo(entity: Entity, reference: string) {
protected queryInfo(entity: Entity, reference: string) {
const side = this.source.reference === reference ? "source" : "target";
const self = this[side];
const other = this[side === "source" ? "target" : "source"];