As this issue quickly evolved into “we can’t fix this easily, so we probably won't do it unless someone else is doing it”, I propose to document it somewhere as a known issue. Something like “Fetching an Entity E using an entity graph that specifies to eagerly load an associated entity A, might actually return an Entity object E' that has not eagerly loaded A if E' is supplied from a (first-level?) cache-hit and E' was requested to fetch A lazily at the time it was instantiated.” |