Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
doctrinebot opened this issue Sep 29, 2011 · 10 comments
Assignees
Milestone

Comments

@doctrinebot
Copy link

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?

@doctrinebot
Copy link
Author

Comment created by @guilhermeblanco:

Updating fix version

@doctrinebot
Copy link
Author

Comment created by gcaseres:

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

@doctrinebot
Copy link
Author

Comment created by deatheriam:

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?

@doctrinebot
Copy link
Author

Comment created by sandermarechal:

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

@doctrinebot
Copy link
Author

Comment created by @Ocramius:

[~sandermarechal] pull requests are welcome :)

@doctrinebot
Copy link
Author

Comment created by sandermarechal:

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?

@doctrinebot
Copy link
Author

Comment created by @Ocramius:

[~sandermarechal] no, it would need to wait for 2.5

@doctrinebot
Copy link
Author

Comment created by sandermarechal:

Ah, too bad. Anyway: #706

@doctrinebot
Copy link
Author

Comment created by @beberlei:

Merged for 2.4, we will release some more RCs

@doctrinebot
Copy link
Author

Issue was closed with resolution "Fixed"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants