doctrine/doctrine2 — pull request #668 by Ocramius (2013-05-16 14:31:30+00:00)
Title: [WIP] Adding failing test for DDC-2452

DQL joins between JTI entities produce invalid SQL when additional conditions are inserted via WITH clause

Still working on a fix