fix: WithBuilder produced embedding errored when mappedBy was used

This commit is contained in:
dswbx
2026-02-03 18:15:40 +01:00
parent 68063986d1
commit 1c114d9533

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,
});
}