php - Keep selected fields order with HYDRATE_ARRAY in Doctrine 1.2
My question is quite simple but I can't manage to find an answer.
When I execute a query like:
$query->select('t2.name as t2_name, t1.name as t1_name') ->from('table1 t1') ->leftJoin('t1.table2 t2') ->execute(array(), Doctrine_Core::HYDRATE_ARRAY);
Doctrine returns me an array like:
array(  => array( 't1_name' => 'foo', 't2_name' => 'bar' ) )
Where i expected to get field t2_name to be set in the array before t1_name.
Is there anyway to keep the order of these selected fields in Doctrine ?