emberjs/data — Issue #138: DS.Model#id should be available after calling DS.Store#find(DS.Model, id)
Author: pixelcort
Created: 2012-03-06 20:52:34+00:00
State: open

Here is an example:

var theAltima = App.store.find(App.Car, 5);
ember_assert("theAltima's id is 5", theAltima.get('id') === 5);

Even though the store knows that this model instance has id 5, the mode instance does not.

I originally filed this as #102 but it was closed. The id computed property still doesn't seem to be able to look up the primaryKey immediately after creation of the model instance.