breeze-client
breeze-client copied to clipboard
Detatched navigation entity not re-linked when redownloaded
I have a primary entity with a navigation property to another related entity. If I detach the releated entity and then re-query the related entity from the server, the navigation property on the primary entity remains null. Unless I re-query the primary entity from the server. Is that intended?
t.selectedSurvey.enumSection
// enumSection {entityAspect: EntityAspect, _backingStore: {…}}
t.selectedSurvey.enumSection.entityAspect.setDetached()
// true
t.selectedSurvey.enumSection
// null
t.selectedSurvey.entityAspect.loadNavigationProperty('enumSection')
// ZoneAwarePromise {__zone_symbol__state: null, __zone_symbol__value: Array(0)}
t.selectedSurvey.enumSection
// null after promise returns and entity is in the breeze cache.