Affects Version/s: 2.1
Fix Version/s: 2.1
Security Level: All
$doctrineCollection = Doctrine_Query::create()
->innerJoin('a.Table2 b ON a.id = b.id')
$doctrineCollection->toArray() will return only the contents of Table1. However, $doctrineCollection->getFirst()->toArray() will return the results of Table1 + an additional key named 'Table2' which returns the join result from Table2.
It does not make sense for the collection hydration to differ to that of the objects in the collection.