Jira issue originally created by user anush:
When using the QueryBuilder, joins that refer to table aliases from other joins get omitted. Only those joins that refer to table aliases from the "from" clause get included.
Comment created by anush:
Just realized that there is a way to solve the issue with omitted joins. Essentially, we'd always need to use one of the FROM table aliases as the $fromAlias for the join() methods. While this works quite well, it seems un-intuitive.
If this is expected behavior, I can close the ticket, but again, seems a bit un-intuitive.
Comment created by @beberlei:
An exception is now thrown when this occurs with details on how to fix it.
Issue was closed with resolution "Fixed"