I've been working on a pagination implementation that works properly for fetch-joined relations. To do this, I've been working with custom tree walkers.
I hit a roadblock when I needed access to the query hints from within my concrete TreeWalker. Since they are not in the AST, the only way to get at them is through the Query object. However, this is private on TreeWalkerAdapter, and cannot be accessed.
I propose adding a protected _getQuery() method to TreeWalkerAdapter to facilitate this.