Details
Description
Some values of a join can be found in root component some in the relations - even for the same value
$q = Doctrine_Query::create()
-> select ('a.id, b.code, b.code as also_b_code')
-> from('Foo a')
-> innerJoin('a.Bar b')
->setHydrationMode(Doctrine::HYDRATE_ARRAY);
$res = $q->execute();
id is primary key of table Foo and code is primary key of table Bar
The result will contain id AND also_b_code as $res[0]['id'] and $res[0]['also_b_code'] but code is under $res[0]['Bar']['code']
Is there any way to get Doctrine::HYDRATE_ARRAY to work as under 1.1?