Skip to content

Instantly share code, notes, and snippets.

View AleksandarIlic's full-sized avatar

Aleksandar Ilic AleksandarIlic

  • Belgrade, Serbia
View GitHub Profile
@AleksandarIlic
AleksandarIlic / gist:88881d4de3b187bb34c9
Last active February 25, 2016 09:18
Code snippet for reproducing the issue with retrieving objects from ParseRelation from a Local Datastore.
public void BugReproduction_ParseRelation_getQuery_fromLocalDatastore() throws ParseException {
// Let's create a simple Post ParseObject
ParseObject post = new ParseObject("Post");
post.put("author", "Aleksandar Ilic");
post.put("text", "This is a post.");
post.save(); // Post gets saved on the Cloud with objectId "Q46yLYlx7e"
// And some comments
ParseObject comment1 = new ParseObject("Comment");
comment1.put("text", "This is 1st comment.");