[DDC-1398] loading one item at a time when indexBy and EXTRA_LAZY fetch mode is used on a collection Created: 29/Sep/11  Updated: 20/Jun/13  Resolved: 20/Jun/13

Status: Resolved
Project: Doctrine 2 - ORM
Component/s: ORM
Affects Version/s: None
Fix Version/s: 2.4
Security Level: All

Type: Improvement Priority: Major
Reporter: Reio Piller Assignee: Benjamin Eberlei
Resolution: Fixed Votes: 3
Labels: None



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?

Comment by Guilherme Blanco [ 20/Dec/11 ]

Updating fix version

Comment by German Caseres [ 05/Mar/12 ]

Is there any fix for this? i have the same problem.

Comment by Oleg Namaka [ 10/Mar/12 ]

It makes a perfect sense here, I wish it was possible, it would give us a room for even more optimization. Any input on the issue from the developers?

Comment by Sander Marechal [ 19/Jun/13 ]

Any progress on this? I'd love to have get() that works on EXTRA_LAZY collections.

Comment by Marco Pivetta [ 19/Jun/13 ]

Sander Marechal pull requests are welcome

Comment by Sander Marechal [ 20/Jun/13 ]

I'm on it I see the ORM is already in 2.4-RC stage. If my pull is accepted, can it still be included in 2.4 or will it have to wait until 2.5?

Comment by Marco Pivetta [ 20/Jun/13 ]

Sander Marechal no, it would need to wait for 2.5

Comment by Sander Marechal [ 20/Jun/13 ]

Ah, too bad. Anyway: https://github.com/doctrine/doctrine2/pull/706

Comment by Benjamin Eberlei [ 20/Jun/13 ]

Merged for 2.4, we will release some more RCs

Generated at Sun Oct 04 15:52:25 EDT 2015 using JIRA 6.4.10#64025-sha1:5b8b74079161cd76a20ab66dda52747ee6701bd6.