Possible Duplicate:
Zend Framework Complex Where Statement
How do I add something like this to a Zend_Db_Select while still using quoting?
SELECT x FROM y WHERE (a=1 OR b=2) AND (c=3 OR d=4)
I have seen where() and orWhere(), but I see no way of grouping them with brackets. I realize that I could just write this:
->where('(a=1 OR b=2) AND (c=3 OR d=4)')
But ideally I would like to have 4 separate calls to where() to be able to use the second parameter for quoting (assuming the values 1, 2, 3 etc. are user generated input).
Is there any way to do this in the pure fluent style?