mirror of
https://github.com/shishantbiswas/bknd.git
synced 2026-03-16 12:37:20 +00:00
fix many to many reference query
This commit is contained in:
@@ -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"];
|
||||
|
||||
Reference in New Issue
Block a user