DDC-1398: loading one item at a time when indexBy and EXTRA_LAZY fetch mode is used on a collection #1752

Open
opened 2026-01-22 13:24:35 +01:00 by admin · 0 comments
Owner

Originally created by @doctrinebot on GitHub (Sep 29, 2011).

Originally assigned to: @beberlei on GitHub.

Jira issue originally created by user hypno:

collection->get($key)

Atm in 2.1.2 this is loading the entire collection. It would be really handy that it would extra lazy load only one item using the association and indexBy fields and given key value (if collection is not initialized and the key havent been loaded yet ofc)

Am i making sense with this?

Originally created by @doctrinebot on GitHub (Sep 29, 2011). Originally assigned to: @beberlei on GitHub. Jira issue originally created by user hypno: collection->get($key) Atm in 2.1.2 this is loading the entire collection. It would be really handy that it would extra lazy load only one item using the association and indexBy fields and given key value (if collection is not initialized and the key havent been loaded yet ofc) Am i making sense with this?
admin added the Improvement label 2026-01-22 13:24: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#1752