First of all I could not find a work around for the fact that if you have multiple constraints in your subqueries doctrine gets confused (due the word AND in the constraints) about where 1 subquerie begins and another ends) see line 60 of Doctrine_Query_Condition. But I did put in some regex that lets doctrine keep parens it was triming so it can figure it all out provided your constraints in the subqueries are in parens of their own (grouped together).
First of all I could not find a work around for the fact that if you have multiple constraints in your subqueries doctrine gets confused (due the word AND in the constraints) about where 1 subquerie begins and another ends) see line 60 of Doctrine_Query_Condition. But I did put in some regex that lets doctrine keep parens it was triming so it can figure it all out provided your constraints in the subqueries are in parens of their own (grouped together).