Currently I have a model setup like this
App.Specialty = DS.Model.extend({
//specialty_id: attr(),
name: attr()
});
It has a primaryKey being returned from the json api called specialty_id
instead of id
(what ember data probably expects).
So not fiddling with anything ember data gets two objects where one it uses the id as whatever parameter and the second one it gets the right object but has id as undefined.
How can I let ember data know that it should be searching for specialty_id
instead?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…