Saving a record breaks belongsTo relationships


#1

This issue started showing up when I updated to 1.0.0.beta. Essentially, record.save() breaks my belongsTo relationships. Prior to saving record.get(‘relationship’) returns the appropriate object. However, after the save the same get returns the string id of the record. I’ve managed to trace it down to the call to suspendRelationshipObservers. Prior to that call gets work correctly, but after they start to fail.

Any ideas on what could be going on? I’ll keep digging into what suspendRelationshipObservers is doing. Let me know if more details are needed.


#2

Actually, it looks as if Yehuda just fixed my problem.

See, https://github.com/emberjs/data/commit/be954be9247fba5ba34783940e7944d76e22e61e

Thanks Yehuda!


#3

This bug also fix the hasMany relationships breaking?