Changeset 4973
- Timestamp:
- 09/25/08 18:52:33 (9 months ago)
- Location:
- branches/1.0
- Files:
-
- 1 added
- 2 modified
-
lib/Doctrine/Query.php (modified) (1 diff)
-
tests/Query/HydrateNoneTestCase.php (added)
-
tests/run.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
branches/1.0/lib/Doctrine/Query.php
r4957 r4973 456 456 } else { 457 457 // 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) { 460 460 $fields = array_unique(array_merge((array) $table->getIdentifier(), $fields)); 461 461 } -
branches/1.0/tests/run.php
r4955 r4973 332 332 $query_tests->addTestCase(new Doctrine_Query_RemoveQueryPart_TestCase()); 333 333 $query_tests->addTestCase(new Doctrine_Query_Copy_TestCase()); 334 $query_tests->addTestCase(new Doctrine_Query_HydrateNone_TestCase()); 334 335 $test->addTestCase($query_tests); 335 336