DistinctRootEntityResultTransformer and AddJoin not working properly below collections

Description

I have a query where I do 2 joins.

The first join is mapped with AddJoin to a collection in the top level objects, and this works.

The second join is mapped with AddJoin to a field in each member of that collection, but the field is not properly filled (trying to access it results in querying for the leaf object again).

Environment

None

Assignee

Unassigned

Reporter

Fernando Mato Mira

Labels

None

Components

Affects versions

Priority

Major
Configure