Questions tagged [pfrelation]

A class that is used to access all of the children of a many-to-many relationship as it pertains to a specific PFObject. Each instance of PFRelation is associated with a particular parent object and key.

More information available here.

64 questions
0
votes
0 answers

Adding a table row object to a PFRelation in Swift with Parse

I'm adding a friendship relation for current user to the row which resembles another user in user table using table view controller. I cannot find a way of setting the selected row as a variable, in this instance the object would be called user.…
0
votes
0 answers

PFRelation won't save, trying to link message object to PFUser object

I am having trouble saving a PFRelation in Parse. I have a message PFObject and want to add this to a PFRelation receivedMessages in the PFUser class. Code is below. Everything works up to actually trying to create the relationship. I have set…
Kex
  • 8,023
  • 9
  • 56
  • 129
0
votes
1 answer

Adding multiple users at once to PFRelation IOS objective c

Im wanting to add multiple users that I queried to a PFRelation all at once. How do I go about doing this. Also will all of the users information be stored in the PFRelation so that the current user can access it at a later time? //so now i am…
0
votes
1 answer

how to make prober PFRelation query ? Parse.com

i have successfully made the relation. now i dont know how to query it i can see the data on the website og i can see it's linked to each-other Here's how i make the "link" PFRelation var query = PFQuery(className:"Profile") let objectID =…
KennyVB
  • 745
  • 2
  • 9
  • 28
0
votes
1 answer

PFRelation objects or query with key?

I am building a simple app that allows a user to login and a tableview displays the friend list. I initially thought I would include a friends array in the PFUser class containing the ID's of the people the user is friends with. So when the app…
Kex
  • 8,023
  • 9
  • 56
  • 129
0
votes
1 answer

PFRelation addObject does not add relation

I'm trying to add an object to a relation in Parse, although the code gets exectued without any errors the relation does not appear in the backend, therefore the object was not saved. PFObject *newContact = [PFObject…
gpichler
  • 2,181
  • 2
  • 27
  • 52
0
votes
2 answers

Doing many-to-many query in Parse where the query matches more than one object

In Parse's documentation, we see how to do an inverse of a many-to-many relationship but with just one object to look up. To work from their example of Books and authors, where they know the author and they want to find the books. What I want is to…
AutomatonTec
  • 666
  • 6
  • 15
0
votes
1 answer

Trouble querying for a user and adding that user as a friendship relation in Parse

I'm trying to query for users in my Parse database and create a friendship between the current user and the queried user. I've gone through a lot of the Parse documentation and tutorials, but I still can't get it working. I keep getting a…
user3353890
  • 1,844
  • 1
  • 16
  • 31
0
votes
1 answer

Count number of objects in PFRelation

I have a custom Parse class that represents an event. The event has 3 PFRelation columns that represent users that have been invited to the event, users that have accepted the event and users that have declined the event. Is there any way to count…
harkmall
  • 55
  • 1
  • 7
0
votes
1 answer

Parse.com issue: Why can't save the PFRelation?

I would like to add a contact to the current users contact list when the current user taps the addToContact button, but i get an error when i tap it. I have no idea why this happens, because the code based on the Parse guide, therefore it would be a…
rihekopo
  • 3,241
  • 4
  • 34
  • 63
0
votes
1 answer

PFQuery based on if the PFObject's pointer is in current user "friendship" PFRelation

I'm trying to query for objects based on the User who posted the PFObject being in the current user PFRelation "friendship". I was wondering if you can use a PFRelation as you would a NSArray and do something similar to this.. @"user" is a pointer…
Evan Ische
  • 76
  • 1
  • 7
0
votes
1 answer

How to get user ID from query objects and relationship?

i'm losing my head over this one just can't figure it out . my app has a text field and a button which you can submit your phone number or just a number ( it doesn't matter ) . the button method is this PFObject *addValues= [PFObject…
XcodeNOOB
  • 2,135
  • 4
  • 23
  • 29
0
votes
1 answer

iOS - Parse.com PFRelation for adding friends only adds the relationship for current user, not for the friend being added

My app has a view controller where the user can add friends. The app accesses the user's address book, and calls to the Parse.com backend server to see if any of the address book contacts are already using the app. If any are found, then I place the…
user3344977
  • 3,584
  • 4
  • 32
  • 88
0
votes
0 answers

What kind of Relation do I use? Parse.com

I'm new to Parse and I have watched several tutorials from Parse.com about the Parse-Relation. But I just can't figure it out! Let's say I'm making an app for a School. We have classes with students. And students can be in different classes. And…
John Boss
  • 3
  • 3
0
votes
1 answer

PFQuery and PFRelation Crash app when Run

Hello everyone I would like to ask a help to those who can ' give it to me ... Before you start to use specific Parse.com as manager for the data in my App In my FILE.h I created a PFObject called PostDetails PostDetail in my file.m is used in the…
kAiN
  • 2,559
  • 1
  • 26
  • 54