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

Popular posts from this blog

yii2 - Yii 2 Running a Cron in the basic template -

asp.net - 'System.Web.HttpContext' does not contain a definition for 'GetOwinContext' Mystery -

mercurial graft feature, can it copy? -