DDC-772: Query::iterate() returns arrays (like mixed results) #949

Open
opened 2026-01-22 12:56:58 +01:00 by admin · 0 comments
Owner

Originally created by @doctrinebot on GitHub (Aug 27, 2010).

Jira issue originally created by user arnaud-lb:

Instead of returning queried objects, Query::iterate returns arrays with the queried objects as single elements, like mixed results :

$query = $em->createQuery('SELECT f FROM \Foo');

foreach($query->iterate() as $row) {
    print_r($row); // $row is an array(0 => \Foo instance)
}
Originally created by @doctrinebot on GitHub (Aug 27, 2010). Jira issue originally created by user arnaud-lb: Instead of returning queried objects, Query::iterate returns arrays with the queried objects as single elements, like mixed results : ``` $query = $em->createQuery('SELECT f FROM \Foo'); foreach($query->iterate() as $row) { print_r($row); // $row is an array(0 => \Foo instance) } ```
admin added the Bug label 2026-01-22 12:56:58 +01:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: doctrine/archived-orm#949