Closed
Description
So I'm creating a relationship between an existing object post
and a new object myComment
like so:
'use strict';
import Backbone from "typhonjs/backbone-parse-es6";
export default class MIPost extends Backbone.Model
{
/**
* Returns the `className` which is the table stored in Parse.
*
* @returns {string}
*/
get className() { return "MIPost"; }
}
'use strict';
import Backbone from "typhonjs/backbone-parse-es6";
export default class MIComment extends Backbone.Model
{
/**
* Returns the `className` which is the table stored in Parse.
*
* @returns {string}
*/
get className() { return "MIComment"; }
}
var post = new MIPost();
post.id = "1zEcyElZ80";
var myComment = new MIComment();
myComment.set("parent", post);
When I'm run a mycComment.save();
the framework runs a batch trying to save post
for no reason. I just want to create a relationship between myComment
and post
and saving myComment
. Because after my CloudCode verification on Post
objects throw me the error that my object attributes are empty...
I open the same issue on Parse repository: parse-community/Parse-SDK-JS#142
But apparently it's not the normal behavior.
Metadata
Metadata
Assignees
Labels
No labels