doctrine/doctrine2 — pull request #495 by vclayton (2012-11-01 22:01:50+00:00)
Title: [DDC-2113] Surround WHERE clause with parens if using SQLFilter

Patch to address DDC-2113, by surrounding the WHERE clause conditional with parens if there are any filterClauses