fix ManyToManyRelation to respect select from with query

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

No files matched your search

+1 -1
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(