[PR #12187] [MERGED] [GH-9219] Add support for toIterable over mixed or scalar results. #13554

Closed
opened 2026-01-22 16:17:31 +01:00 by admin · 0 comments
Owner

📋 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.xHead: GH-9219-ToIterableMixed


📝 Commits (3)

  • a6ecdb1 [GH-9219] Add support for toIterable over mixed or scalar results.
  • 561091b Housekeeping: phpcs
  • 7f2b885 Update 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::hydrateRowData will return $result in a very weird way based on combinations of objects, cross joined objects or scalar results. This is already "worked on" in AbstractHydrator::toIterable but 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.

## 📋 Pull Request Information **Original PR:** https://github.com/doctrine/orm/pull/12187 **Author:** [@beberlei](https://github.com/beberlei) **Created:** 10/7/2025 **Status:** ✅ Merged **Merged:** 10/8/2025 **Merged by:** [@beberlei](https://github.com/beberlei) **Base:** `2.20.x` ← **Head:** `GH-9219-ToIterableMixed` --- ### 📝 Commits (3) - [`a6ecdb1`](https://github.com/doctrine/orm/commit/a6ecdb1264e3c482d509cd7e29f6fc1e3a05b6c6) [GH-9219] Add support for toIterable over mixed or scalar results. - [`561091b`](https://github.com/doctrine/orm/commit/561091b08521d0e562bfba171446de1aa5ffbd67) Housekeeping: phpcs - [`7f2b885`](https://github.com/doctrine/orm/commit/7f2b885f6e0732e2db35b0bc56530fbf223fda38) Update test names ### 📊 Changes **3 files changed** (+125 additions, -11 deletions) <details> <summary>View changed files</summary> 📝 `src/AbstractQuery.php` (+0 -5) 📝 `src/Internal/Hydration/AbstractHydrator.php` (+5 -1) 📝 `tests/Tests/ORM/Functional/QueryTest.php` (+120 -5) </details> ### 📄 Description `AbstractHydrator::hydrateRowData` will return `$result` in a very weird way based on combinations of objects, cross joined objects or scalar results. This is already "worked on" in `AbstractHydrator::toIterable` but 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 --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
admin added the pull-request label 2026-01-22 16:17:31 +01:00
admin closed this issue 2026-01-22 16:17:31 +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#13554