doctrine/doctrine2 — pull request #451 by mvrhov (2012-09-21 08:27:38+00:00)
Title: Adding multiple identical joins via query builder should produce a valid DQL

Rationale:
I'm building a webservice where the client can specify a simple filter on the field of the 1:n table.
Without this patch I have to keep a state of which joins I have added to the DQL, which doesn't make any sense as IMHO the DQL builder is meant just for the kind of usage I do.