PFRelation Class Reference

Inherits from NSObject
Declared in PFRelation.h

Overview

The PFRelation class that is used to access all of the children of a many-to-many relationship. Each instance of PFRelation is associated with a particular parent object and key.

Other Methods

  targetClass

The name of the class of the target child objects.

@property (nullable, nonatomic, copy) NSString *targetClass

Declared In

PFRelation.h

Accessing Objects

– query

Returns a PFQuery object that can be used to get objects in this relation.

- (PFQuery *)query

Declared In

PFRelation.h

Modifying Relations

– addObject:

Adds a relation to the passed in object.

- (void)addObject:(PFObject *)object

Parameters

object

A PFObject object to add relation to.

Declared In

PFRelation.h

– removeObject:

Removes a relation to the passed in object.

- (void)removeObject:(PFObject *)object

Parameters

object

A PFObject object to add relation to.

Declared In

PFRelation.h