Hi,
I want to create an new post object. that have many comment objects. In my case I want to create an new post object an append existing comment-objects to new post object. In HTTP-Post is no comments set why? The properties of post model would set, but not the hasMany relation from post → comment. Why how I solve it?
var post = this.store.createRecord('post', {
subject: this.get('subject'),
description: this.get('description'),
created: new Date(),
pState: 'NEW',
comments: this.get('controllers.comments.content')
});
post.save();