File tree Expand file tree Collapse file tree 2 files changed +7
-4
lines changed Expand file tree Collapse file tree 2 files changed +7
-4
lines changed Original file line number Diff line number Diff line change 11
11
12
12
#import < Parse/PFObject.h>
13
13
#import < Parse/PFSubclassing.h>
14
+ #import < Parse/PFUser.h>
14
15
15
16
NS_ASSUME_NONNULL_BEGIN
16
17
18
+ @class PFRelation<ObjectType : PFObject *>;
19
+
17
20
/* *
18
21
The `PFRole` class represents a Role on the Parse server.
19
22
`PFRoles` represent groupings of `PFUser` objects for the purposes of granting permissions
@@ -83,7 +86,7 @@ NS_ASSUME_NONNULL_BEGIN
83
86
(e.g. read or write access through ACLs). You can add or remove users from
84
87
the role through this relation.
85
88
*/
86
- @property (nonatomic , strong , readonly ) PFRelation *users;
89
+ @property (nonatomic , strong , readonly ) PFRelation<PFUser *> *users;
87
90
88
91
/* *
89
92
Gets the `PFRelation` for the `PFRole` objects that are direct children of this role.
@@ -92,7 +95,7 @@ NS_ASSUME_NONNULL_BEGIN
92
95
(e.g. read or write access through ACLs). You can add or remove child roles
93
96
from this role through this relation.
94
97
*/
95
- @property (nonatomic , strong , readonly ) PFRelation *roles;
98
+ @property (nonatomic , strong , readonly ) PFRelation<PFRole *> *roles;
96
99
97
100
@end
98
101
Original file line number Diff line number Diff line change @@ -51,11 +51,11 @@ + (instancetype)roleWithName:(NSString *)name acl:(PFACL *)acl {
51
51
@dynamic name;
52
52
53
53
// Dynamic synthesizers would use objectForKey, not relationForKey
54
- - (PFRelation *)roles {
54
+ - (PFRelation<PFRole *> *)roles {
55
55
return [self relationForKey: @keypath (PFRole, roles)];
56
56
}
57
57
58
- - (PFRelation *)users {
58
+ - (PFRelation<PFUser *> *)users {
59
59
return [self relationForKey: @keypath (PFRole, users)];
60
60
}
61
61
You can’t perform that action at this time.
0 commit comments