[PR #8555] Query::toIterable() should support mixed result queries with scalar mappings #11062

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

Original Pull Request: https://github.com/doctrine/orm/pull/8555

State: closed
Merged: No


Fix #8520 and supersedes #8467.

AbstractHydrator::toIterable reuses AbstractHydrator::iterate which had as only problem , as far as I know, weirdly normalized data. The real cause here is AbstractHydrator::hydrateRow, but since it is not internal, it could not be fixed. Therefore, AbstractHydrator::toIterable normalizes rows returned by AbstractHydrator::iterate.

**Original Pull Request:** https://github.com/doctrine/orm/pull/8555 **State:** closed **Merged:** No --- Fix #8520 and supersedes #8467. `AbstractHydrator::toIterable` reuses `AbstractHydrator::iterate` which had as only problem , as far as I know, weirdly normalized data. The real cause here is `AbstractHydrator::hydrateRow`, but since it is not internal, it could not be fixed. Therefore, `AbstractHydrator::toIterable` normalizes rows returned by `AbstractHydrator::iterate`.
admin added the pull-request label 2026-01-22 16:09:35 +01:00
admin closed this issue 2026-01-22 16:09:35 +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#11062