well, i want to do foreach on a query result and expect the documents to be in that loop. if we only return the Rows on joins, this can also be quite surprising. so the option i see would be to add a hydrate mode Row.

but for the join case, does phpcr not tell in a row which document (=repo path) is which? that would make the join result rather awkward to use indeed.