Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @class RKManagedObject (PrimaryKeysFix)
- + (id)objectWithPrimaryKeyValue:(id)value {
- NSPredicate* predicate = [NSPredicate predicateWithFormat:@"%K = %@", [self primaryKeyProperty], value];
- return [self objectWithPredicate:predicate];
- }
- @end
Add Comment
Please, Sign In to add comment