toIterable() Exception - Iterating a query with mixed results (using scalars) is not supported #6663

Closed
opened 2026-01-22 15:36:38 +01:00 by admin · 2 comments
Owner

Originally created by @sergeysrabionyan on GitHub (Mar 26, 2021).

When I try to iterate over the queryBuilder toIterable() method I get an error "Iterating a query with mixed results (using scalars) is not supported", when I use the "deprecated" method iterate () I get the correct result.

Can I repeat the behavior of the iterate () method and make it not deprecated?

Originally created by @sergeysrabionyan on GitHub (Mar 26, 2021). When I try to iterate over the queryBuilder toIterable() method I get an error "Iterating a query with mixed results (using scalars) is not supported", when I use the "deprecated" method iterate () I get the correct result. Can I repeat the behavior of the iterate () method and make it not deprecated?
admin closed this issue 2026-01-22 15:36:38 +01:00
Author
Owner

@beberlei commented on GitHub (Mar 26, 2021):

We have not managed to find a way to support it yet, but if you do of course we will accept it.

@beberlei commented on GitHub (Mar 26, 2021): We have not managed to find a way to support it yet, but if you do of course we will accept it.
Author
Owner

@eigan commented on GitHub (Jul 15, 2021):

Duplicate of #8520

@eigan commented on GitHub (Jul 15, 2021): Duplicate of #8520
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: doctrine/archived-orm#6663