mirror of
https://github.com/zhigang1992/RestKit.git
synced 2026-05-09 19:56:20 +08:00
Add error condition when attempting to map an RKEntityMapping containing connection mappings with a nil managed object cache.
* Add support for the data source to fail mapping operation with an error. * Clean up error handling within RKMappingOperation
This commit is contained in:
@@ -51,8 +51,9 @@
|
||||
Tells the data source to commit any changes to the underlying data store.
|
||||
|
||||
@param mappingOperation The mapping operation that has completed its work.
|
||||
@param error A pointer to an error to be set in the event that the mapping operation could not be committed.
|
||||
@return A Boolean value indicating if the changes for the mapping operation were committed successfully.
|
||||
*/
|
||||
// TODO: better name?
|
||||
- (void)commitChangesForMappingOperation:(RKMappingOperation *)mappingOperation;
|
||||
- (BOOL)commitChangesForMappingOperation:(RKMappingOperation *)mappingOperation error:(NSError **)error;
|
||||
|
||||
@end
|
||||
|
||||
Reference in New Issue
Block a user