Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @implementation RLMFMCGProductForm
- + (NSString *)primaryKey
- {
- return @"uuid";
- }
- @end
- RLMRealm *realm = [RLMRealm defaultRealm];
- NSLog(@"}}}}}}}}}}} %@", form.uuid);
- @try {
- [realm beginWriteTransaction];
- form.uuid = @"test";
- [realm addOrUpdateObject:form]; // [realm addOrUpdateObject:employeeInfo];
- [realm commitWriteTransaction];
- }
- @catch (NSException *exception) {
- NSLog(@"exception");
- if ([realm inWriteTransaction]) {
- [realm cancelWriteTransaction];
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement