fix ManyToManyRelation to respect select from with query

This commit is contained in:
dswbx
2025-02-21 11:12:58 +01:00
parent 9ecfcb3e05
commit 837b0a3d43
3 changed files with 4 additions and 3 deletions

View File

@@ -143,7 +143,7 @@ export class ManyToManyRelation extends EntityRelation<typeof ManyToManyRelation
eb
.selectFrom(other.entity.name)
.select((eb2) => {
const select: any[] = other.entity.getSelect(other.entity.name);
const select: any[] = [];
if (additionalFields.length > 0) {
const conn = this.connectionEntity.name;
select.push(