Index: tests/Ticket/DC701HydrateArrayShallowTestCase.php =================================================================== --- tests/Ticket/DC701HydrateArrayShallowTestCase.php (revision 0) +++ tests/Ticket/DC701HydrateArrayShallowTestCase.php (revision 0) @@ -0,0 +1,46 @@ +. + */ + +/** + * Doctrine_Query_MysqlSubquery_TestCase + * + * @package Doctrine + * @author Will Ferrer + * @license http://www.opensource.org/licenses/lgpl-license.php LGPL + * @category Object Relational Mapping + * @link www.doctrine-project.org + * @since 1.0 + * @version $Revision$ + */ +class Doctrine_Ticket_DC701HydrateArrayShallow_TestCase extends Doctrine_UnitTestCase +{ + public function testFetchHydrateArrayShallow() + { + $q = new Doctrine_Query(); + + $q->select('u.*, p.*')->from('User u')->innerJoin('u.Phonenumber p')->where("u.name = 'zYne'");; + + $users = $q->execute(array(), Doctrine_Core::HYDRATE_ARRAY_SHALLOW); + + $this->assertEqual($users[0]['entity_id'], 4); + } + +}