arschr wrote:
Thanks, I've not worked with contexts yet. So this is better than just fetching the root object with the same prefetch path because it is reusing objects when possible?
Yes, it will first fetch the data again, and then will re-use an existing entity object if that entity is already loaded before, instead of using a new one. This then makes it possible to fetch new nodes into the current graph, while keeping existing entity instances.
Any other benefits?
Not in this context (no pun ). Though all entities in the graph are available via the context as well, so you can for example get a hold of an entity directly through the Context object by specifying a type and the PK field(s) value(s).
As it is adding new entities, is it also getting rid of any that are no longer in the graph?
No.