Merge pull request #347 from bknd-io/fix/with-builder-respect-alias

fix: `WithBuilder` produced embedding errored when `mappedBy` was used
This commit is contained in:
dswbx
2026-03-14 13:42:50 +01:00
committed by GitHub
3 changed files with 15 additions and 13 deletions

View File

@@ -39,6 +39,7 @@ export class WithBuilder {
if (query) {
subQuery = em.repo(other.entity).addOptionsToQueryBuilder(subQuery, query as any, {
ignore: ["with", cardinality === 1 ? "limit" : undefined].filter(Boolean) as any,
alias: other.reference,
});
}