data icon indicating copy to clipboard operation
data copied to clipboard

Setting belongsTo relationship to new value results to null value

Open dmarkin opened this issue 7 years ago • 1 comments

From https://github.com/emberjs/data/issues/5517 Maybe also related to https://github.com/emberjs/data/issues/5807 The bug is here. I have the Model Offer, including type: belongsTo('offerType', {async: true}) and Model Offer-type with some properties. With updating from 2.12 to 3.5 Ember breaks down the app cause if I do offer.set('type', someNewTypeFromStore) I'll get finally offer.get('type') === null

Originally posted by @dmarkin in https://github.com/emberjs/data/issues/5517#issuecomment-450146155

dmarkin avatar Jan 03 '19 10:01 dmarkin

Could this be related to #5822

BryanCrotaz avatar Jan 25 '19 16:01 BryanCrotaz

@dmarkin did you ever come up with a reproduction? I still have doubts this is a real bug. So far any case I've been shown was an issue with the app not loading data in the right format.

runspired avatar Nov 19 '22 18:11 runspired

Closing as we have no reproduction for this and this functionality is covered by multiple tests.

runspired avatar Dec 07 '22 18:12 runspired