This PR maintains the order in which joins are added to the query builder, as before the inner joins were being output before the left joins, which could lead to errors if an inner join relied on a left join.
This PR groups all joins in an array together and marks them with a type. A switch is then used when building the query string
This PR maintains the order in which joins are added to the query builder, as before the inner joins were being output before the left joins, which could lead to errors if an inner join relied on a left join.
This PR groups all joins in an array together and marks them with a type. A switch is then used when building the query string