mirror of
https://github.com/doctrine/orm.git
synced 2026-03-23 22:42:18 +01:00
[PR #12187] [MERGED] [GH-9219] Add support for toIterable over mixed or scalar results. #13554
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?
📋 Pull Request Information
Original PR: https://github.com/doctrine/orm/pull/12187
Author: @beberlei
Created: 10/7/2025
Status: ✅ Merged
Merged: 10/8/2025
Merged by: @beberlei
Base:
2.20.x← Head:GH-9219-ToIterableMixed📝 Commits (3)
a6ecdb1[GH-9219] Add support for toIterable over mixed or scalar results.561091bHousekeeping: phpcs7f2b885Update test names📊 Changes
3 files changed (+125 additions, -11 deletions)
View changed files
📝
src/AbstractQuery.php(+0 -5)📝
src/Internal/Hydration/AbstractHydrator.php(+5 -1)📝
tests/Tests/ORM/Functional/QueryTest.php(+120 -5)📄 Description
AbstractHydrator::hydrateRowDatawill return$resultin a very weird way based on combinations of objects, cross joined objects or scalar results. This is already "worked on" inAbstractHydrator::toIterablebut it needs a bunch more molding to make scalar results and multiple object results work.Fixes #9219
Fixes https://github.com/doctrine/orm/issues/8520
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.