Changeset 4973

Show
Ignore:
Timestamp:
09/25/08 18:52:33 (9 months ago)
Author:
romanb
Message:

Fixed #1499. Fixed #1492.

Location:
branches/1.0
Files:
1 added
2 modified

Legend:

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

    r4957 r4973  
    456456        } else { 
    457457            // only auto-add the primary key fields if this query object is not 
    458             // a subquery of another query object 
    459             if ( ! $this->_isSubquery || $this->_hydrator->getHydrationMode() === Doctrine::HYDRATE_NONE) { 
     458            // a subquery of another query object and we're not using HYDRATE_NONE 
     459            if ( ! $this->_isSubquery && $this->_hydrator->getHydrationMode() != Doctrine::HYDRATE_NONE) { 
    460460                $fields = array_unique(array_merge((array) $table->getIdentifier(), $fields)); 
    461461            } 
  • branches/1.0/tests/run.php

    r4955 r4973  
    332332$query_tests->addTestCase(new Doctrine_Query_RemoveQueryPart_TestCase()); 
    333333$query_tests->addTestCase(new Doctrine_Query_Copy_TestCase()); 
     334$query_tests->addTestCase(new Doctrine_Query_HydrateNone_TestCase()); 
    334335$test->addTestCase($query_tests); 
    335336