Changeset 4793

Show
Ignore:
Timestamp:
08/22/08 11:51:41 (11 months ago)
Author:
romanb
Message:

Relaxed the restriction on joined classes (pk of the left side of the join must be selected) for subqueries.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • branches/1.0/lib/Doctrine/Query.php

    r4768 r4793  
    440440 
    441441        // Check that the parent join (if there is one), is a "fetch join", too. 
    442         if (isset($this->_queryComponents[$componentAlias]['parent'])) { 
     442        if ( ! $this->isSubquery() && isset($this->_queryComponents[$componentAlias]['parent'])) { 
    443443            $parentAlias = $this->_queryComponents[$componentAlias]['parent']; 
    444444            if (is_string($parentAlias) && ! isset($this->_pendingFields[$parentAlias])