[PR #8292] Introduce toGenerator() on AbstractQuery #10901

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

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

State: closed
Merged: No


The point is to have both toIterable() and toGenerator() so consumers are able to rely on stricter type.

So if they choose toGenerator() in order to rely on Generator return type, they can assume it is not "rewindable", eg. they can analyze in code that the Generator value is not iterated more than once

**Original Pull Request:** https://github.com/doctrine/orm/pull/8292 **State:** closed **Merged:** No --- The point is to have both `toIterable()` and `toGenerator()` so consumers are able to rely on stricter type. So if they choose `toGenerator()` in order to rely on `Generator` return type, they can assume it is not "rewindable", eg. they can analyze in code that the Generator value is not iterated more than once
admin added the pull-request label 2026-01-22 16:09:03 +01:00
admin closed this issue 2026-01-22 16:09:04 +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#10901