doctrine/doctrine2 — pull request #497 by vclayton (2012-11-02 12:55:43+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