Hello Everybody,
This would probably do a server request, I don't want another server request to be done. I want it to fetch the records from a store.
association between records in store.
I was wondering if it is possible to make an assocation between models, where the source are a few stores that I have. I know a proxy is used for getting the associated record from the server. For example:
Code:
MyApp.model.User.load(1, {
callback: function(user) {
console.log('User: ' + user.get('name'));
user.posts(function(posts){
posts.each(function(post) {
console.log('Post: ' + post.get('title'));
});
});
}
});
This would probably do a server request, I don't want another server request to be done. I want it to fetch the records from a store.
association between records in store.
Aucun commentaire:
Enregistrer un commentaire