cycle/orm

API for a local entities heap isolated in UoW scope

roxblnfk opened this issue · 0 comments

I think we can review the idea of working with iterators/heaps based on local UoW. Since it's localized it will be much safer to predict collisions. In this particular case, the ID has not been confirmed by the database, so the local index for it does not exist.

One of the options I can suggest - we can build local indexes on a level of UoW/EM itself, which seems much more logical instead of going back to Heap.

By @wolfy-j in #392 (comment)

It would be nice to have a cleaner and more "high level" API for getting an entity from a local UoW.

By @KorDum in #392 (comment)