Skip to content

Commit 47a13f7

Browse files
authored
Merge pull request #64 from wollanup/develop
fix(core): CROSS JOIN when nested relations due to duplicate alias
2 parents 6868b7b + 169efbe commit 47a13f7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Service/QueryModifier/UseQuery/UseQueryFromDotNotation.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ public function useQuery($alias = null): ModelCriteria
131131
$path = implode(self::RELATION_SEP, $this->map);
132132
throw new RelationNotFoundException("Relation \"$relation\" Not Found in \"$path\"");
133133
}
134-
$this->query = call_user_func([$this->query, $method], $alias);
134+
$this->query = call_user_func([$this->query, $method], $alias . "_" . $relation);
135135
}
136136
}
137137
$this->inUse = true;

0 commit comments

Comments
 (0)