ember.js - Is there a way to specify which variable to use in ember relationship -
after specifying relationship between
app.post = ds.model.extend({ comments: ds.hasmany('comment') }); app.comment = ds.model.extend({ post: ds.belongsto('post') });
but accepts integer id in 'post' , an array of integers in 'comments' can please tell me how use any other variable reference name or title instead of array.
with associations, referencing ember models not specific types. in case comments in post model references individual comment ember objects
Comments
Post a Comment