emberjs/data — Issue #66: Can't set to a DS.attr
Author: pixelcort
Created: 2012-01-26 04:27:28+00:00
State: open

I have an App.MyModel = DS.Model.extend({myProperty: DS.attr('string',{key:'my_property'})});

I then do an App.store.findAll(MyModel) and later a var myModelInstance = allMyModels.get('firstObject').

When I go to myModelInstance.set('myProperty','blah') and then when I call myModelInstance.get('myProperty') it's the old value from the data hash (from the server). I was expecting the new value I just set.