mirror of
https://github.com/doctrine/orm.git
synced 2026-03-24 06:52:09 +01:00
DDC-2133: Issue with Query::iterate and query mixed results #2684
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @doctrinebot on GitHub (Nov 9, 2012).
Originally assigned to: @beberlei on GitHub.
Jira issue originally created by user deatheriam:
Consider this code:
This results with undefined index: 'name' for the second entry.
First result keys are (notice just one array element with index 0):
but all others are different (notice two array elements with index 0 and the other one that is incrementing):
What's wrong with this approach? Is it a bug or mixed results should not be used with the iterate method?
@doctrinebot commented on GitHub (Nov 9, 2012):
@doctrinebot commented on GitHub (Nov 12, 2012):
Comment created by @beberlei:
This is a known issue that we don't have found a BC fix for and as I understand [~guilhermeblanco] requires considerable refactoring.
@aistis- commented on GitHub (Jul 10, 2017):
I confirm the same issue persists in v2.5.6
Workaround :D
@kbond commented on GitHub (Dec 5, 2020):
It appears this has been solved in 2.8 with the addition of
AbstractQuery::toIterable()(#7885, #8268 & #8293)@beberlei commented on GitHub (Dec 5, 2020):
@kbond perfect :) closing