// // PFRelation.h // Parse // // Created by Shyam Jayaraman on 5/11/12. // Copyright (c) 2012 Parse Inc. All rights reserved. // #import #import "PFObject.h" #import "PFQuery.h" /*! A 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. */ @interface PFRelation : NSObject @property (nonatomic, strong) NSString *targetClass; #pragma mark - #pragma mark Accessing objects /*! @return A ParseQuery that can be used to get objects in this relation. */ - (PFQuery *)query; #pragma mark - #pragma mark Modifying relations /*! Adds a relation to the passed in object. @param object ParseObject to add relation to. */ - (void)addObject:(PFObject *)object; /*! Removes a relation to the passed in object. @param object ParseObject to add relation to. */ - (void)removeObject:(PFObject *)object; @end