introduce Query#joinOn( '', $table, $a, $b ) to obtain a normal where condition
In this way I can use:
Query::factory()
->joinOn( '', 'a', 'a.id', 'b.id' ) ->getQuery()
To obtain:
SELECT * FROM a WHERE a.id = b.id
Instead of running:
throw InvalidArgumentException( 'not enough tables' )
Note that this feature was introduced for better lazy handling of nested queries.