Details
-
Type:
Bug
-
Status:
Open
-
Priority:
Major
-
Resolution: Unresolved
-
Affects Version/s: 1.2.1, 1.2.2
-
Fix Version/s: None
-
Component/s: Query
-
Labels:None
-
Environment:Windows 7, Ubuntu 9.10 (Linux), PHP 5.2.10, Zend Framework 1.10
Description
Calling HYDRATE_ARRAY on a query with
a) No values selected
b) select('*')
c) select('Table.*')
causes the entire query object to be loaded, rather than just returning an array of all values. If a limit(1) is used, the correct result is returned. But as soon as it becomes a collection, the entire query object is returned.
Code to produce problem..
$query = Doctrine_Query::create()
->from('Order ord')
->limit(2)
->execute(array(), Doctrine_Core::HYDRATE_ARRAY);
print_r($query);