In my application im using LSA and im need to use relation in my model for example i have post and comment models like this :
App.Post = DS.Model.extend({
title:DS.attr('string'),
comments:DS.hasMany('comments')
});
App.Comments=DS.Model.extend({
content:DS.attr('string'),
post:DS.belongsTo('post')
});
i want to know ho to create a child relationship between post and comments and how to update commnets of post.