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

Subqueries can over write the $this->_queryComponents[$componentAlias]['agg'] settings for a query #2

Closed runthebusiness closed 11 years ago

runthebusiness commented 11 years ago

When subqueries are made they link to their parent queries _queryComponents, then when a subquery has the same $componentAlias as was used in the parent query it can over write its properties.

Quite specifically the problem happens when a subquery references a parent table in its select, causing the compentAlias in the parent query to be overwrite with information from the subquery.

runthebusiness commented 11 years ago

fixed