runthebusiness / reformation

Reformation is a branch of Doctrine Orm created from version 1.2.1. It contains many new features and bug fixes.
GNU Lesser General Public License v2.1
0 stars 0 forks source link

If you have a where with 2 subqueries doctrine can't parse it #3

Closed runthebusiness closed 11 years ago

runthebusiness commented 11 years ago

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).

runthebusiness commented 11 years ago

fixed