File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -18,7 +18,7 @@ NS_ASSUME_NONNULL_BEGIN
18
18
The `PFRelation` class that is used to access all of the children of a many-to-many relationship.
19
19
Each instance of `PFRelation` is associated with a particular parent object and key.
20
20
*/
21
- @interface PFRelation : NSObject
21
+ @interface PFRelation <ObjectType : PFObject *> : NSObject
22
22
23
23
/* *
24
24
The name of the class of the target child objects.
@@ -32,7 +32,7 @@ NS_ASSUME_NONNULL_BEGIN
32
32
/* *
33
33
Returns a `PFQuery` object that can be used to get objects in this relation.
34
34
*/
35
- - (PFQuery *)query ;
35
+ - (PFQuery<ObjectType> *)query ;
36
36
37
37
// /--------------------------------------
38
38
#pragma mark - Modifying Relations
@@ -43,14 +43,14 @@ NS_ASSUME_NONNULL_BEGIN
43
43
44
44
@param object A `PFObject` object to add relation to.
45
45
*/
46
- - (void )addObject : (PFObject * )object ;
46
+ - (void )addObject : (ObjectType )object ;
47
47
48
48
/* *
49
49
Removes a relation to the passed in object.
50
50
51
51
@param object A `PFObject` object to add relation to.
52
52
*/
53
- - (void )removeObject : (PFObject * )object ;
53
+ - (void )removeObject : (ObjectType )object ;
54
54
55
55
@end
56
56
You can’t perform that action at this time.
0 commit comments