DBAL-172: QueryBuilder joins are omitted if the table alias is not present in the "from" clause #1332

Closed
doctrinebot opened this Issue Sep 26, 2011 · 3 comments

Projects

None yet

2 participants

@doctrinebot
Collaborator

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.

See http://stackoverflow.com/questions/7331117/doctrines-dbal-query-builder-omitts-some-joins

@doctrinebot
Collaborator

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.

@doctrinebot
Collaborator

Comment created by @beberlei:

fixed.

An exception is now thrown when this occurs with details on how to fix it.

@doctrinebot
Collaborator

Issue was closed with resolution "Fixed"

@doctrinebot doctrinebot added the Bug label Dec 6, 2015
@beberlei beberlei was assigned by doctrinebot Dec 6, 2015
@doctrinebot doctrinebot added this to the 2.1.5 milestone Dec 6, 2015
@doctrinebot doctrinebot closed this Dec 6, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment