title: join multiple tables to the same table using query class
body: <p>I'm using the query class to build a query that will have two or three tables join to the same table like this:    </p>
  
  <pre><code>qbds1 = query.addDataSource(tablenum(Table1));
  
  qbds2 = qbds1.addDataSource(tablenum(Table2));
  qbds2.relations(true);
  
  qbds3 = qbds2.addDataSource(tablenum(Table3));
  qbds3.relations(true); 
  
  qbds4 = qbds3.addDataSource(tablenum(Table4));
  qbds4.relations(true);
  
  qbds5 = qbds3.addDataSource(tablenum(Table5));
  qbds5.relations(true);
  
  qbds6 = qbds5.addDataSource(tablenum(Table6));
  qbds6.relations(true);
  qbds6.joinMode(JoinMode::ExistsJoin);
  </code></pre>
  
  <p>In this example I'm trying to join Table<strong>4</strong> to Table<strong>3</strong> and Table<strong>5</strong> to Table<strong>3</strong> but It doesn't work like I want; I've checked with the debugger and untill:</p>
  
  <pre><code>qbds5 = qbds3.addDataSource(tablenum(Table5))
  </code></pre>
  
  <p>everthing is ok; as soon as it executes this line the join between Table4 and Table3 disapears and the join between Table5 and Table3 is NOT added. The query sent to the SQL server is actually 2 queries, one between table1, table2 and table3 and another between table5 and table6 (the link to table4 doesn't exist). If I execute info (query.xml()) at the end, I see the joins between all tables like I wanted. </p>
  
  <p>Is it even possible to achieve this using query class?</p>