I am doing a Model.load similar to this:
//get a reference to the User model class
var User = Ext.ModelManager.getModel('User');
//Uses the configured RestProxy to make a GET request to /users/123
User.load(123, {
success: function(user) {
console.log(user.getId()); //logs 123
}
});
In the console I can see that the correct User
object is being loaded. The correct server side web service is being called. It is going into the success function. However the user
is undefined. Does anyone know why this would happen?