mirror of
https://github.com/doctrine/orm.git
synced 2026-03-23 22:42:18 +01:00
Proposal: Implement extra_lazy for collection->getKeys() #5080
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @mrVrAlex on GitHub (Apr 1, 2016).
Hi, Guys!
I want propose make for all extra_lazy associations, something like this:
This should return an array IDs by simple SQL instead loop (and hydrate!) all collection.
@DHager commented on GitHub (Apr 6, 2016):
Makes sense, although I've avoided keyed-collections because AFAIK when you update items (or flush them to get an auto-generated ID) the association-keys may be stale or inconsistent.