fix for filtering nested M2M relations (#11159)

This commit is contained in:
Silvio
2022-01-24 20:01:20 +01:00
committed by GitHub
parent 47f71bd60b
commit e88cebd8e6

View File

@@ -305,7 +305,7 @@ export function applyFilter(
);
}
if (relationType === 'm2o' || subQuery === true) {
if (relationType === 'm2o' || subQuery === true || (relationType === 'o2m' && parentAlias !== undefined)) {
let parent: string;
if (relationType === 'm2o') {