Created
August 3, 2012 11:43
-
-
Save dancourse/3246881 to your computer and use it in GitHub Desktop.
Bug report for parse: Duplication of parent on save
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var Medias = Parse.Object.extend("Medias"); | |
var aMedia = new Medias(); | |
var MediaScores = Parse.Object.extend("MediaScores"); | |
var aMediaScores = new MediaScores(); | |
var MediaViews = Parse.Object.extend("MediaViews"); | |
var aMediaViews = new MediaViews(); | |
aMediaScores.set("media", Medias); | |
aMediaViews.set("media", Medias); | |
/* | |
Using save here, saves two copies of Medias, one for each relation. | |
When the code I've written I "think" should save 1xMedias and 1xMediaScores and 1xMediaViews | |
*/ | |
aMediaScores.save(); // or aMediaViews.save() or aMedia.save(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment