After changing the association and its subsequent change (a couple of times), the association is lost.
var newCar = MyApp.CarModel.find('hummer'); MyApp.Person.find('wycats').set('car', newCar); var oldCar = MyApp.CarModel.find('toyota'); MyApp.Person.find('wycats').set('car', oldCar);
Not very easy to explain, but very easy to see in this jsfiddle:
http://jsfiddle.net/Vz3E6/2/
Press the buttons in this order and you will see that the connection is lost: 1, 2, 1, 2
I am using ember-latest and ember-data-latest .
EDIT: I created a copy of this question as a problem in the tracker problem with ember data: # 465
source share