I have been working this issue for almost a month and can't find an answer. I have a ParseRelation called "shulMinyans" that I saved in a ParseObject named "Shul". I checked on the web that the ParseRelation saved properly and it saved fine. When I try to retrieve the object, the relation is showing that there are no known objects in the ParseRelation. All the other data for the ParseObject downloads fine except for the ParseRelation. Here is my code:
ParseUser userToSync = ParseUser.getCurrentUser();
Shul shulForID = (Shul) userToSync.get("shul");
String shulID = shulForID.getObjectId();
ParseQuery<Shul> shulQuery = ParseQuery.getQuery("Shul");
shulQuery.setCachePolicy(ParseQuery.CachePolicy.NETWORK_ONLY);
ArrayList<Minyan> oneArray = null;
try {
Shul shulToLoad = shulQuery.get(shulID);
shulToLoad.loadShul(userToSync);
ParseRelation shulMinyans = shulToLoad.getRelation("shulMinyans");
ParseQuery query = shulMinyans.getQuery();
try {
oneArray = (ArrayList<Minyan>) query.find();
} catch (ParseException e) {
e.printStackTrace();
}
} catch (ParseException e) {
e.printStackTrace();
}
How do I make the ParseRelation retrieve the data I have stored?