Fix bug in which relationship connection operations are not enqueued for RKMappingOperation instances whose mapping is an RKDynamicMapping

This commit is contained in:
Blake Watters
2012-10-20 16:52:54 -04:00
parent b3adc29535
commit 63c9a9e4a0
4 changed files with 9 additions and 3 deletions

View File

@@ -148,6 +148,13 @@
*/
@property (nonatomic, strong, readonly) RKMapping *mapping;
/**
The concrete object mapping for the operation.
If the value of `mapping` is an `RKObjectMapping`, returns the same value as `mapping`. If `mapping` is an `RKDynamicMapping`, then returns the concrete `RKObjectMapping` object selected for mapping `sourceObject`.
*/
@property (nonatomic, strong, readonly) RKObjectMapping *objectMapping;
///-------------------------------------------
/// @name Configuring Delegate and Data Source
///-------------------------------------------

View File

@@ -43,7 +43,7 @@ extern NSString * const RKObjectMappingNestingAttributeKeyName;
@property (nonatomic, strong) NSDictionary *nestedAttributeSubstitution;
@property (nonatomic, strong) NSError *validationError;
@property (nonatomic, strong, readwrite) NSError *error;
@property (nonatomic, strong) RKObjectMapping *objectMapping; // The concrete mapping
@property (nonatomic, strong, readwrite) RKObjectMapping *objectMapping; // The concrete mapping
@end
// Defined in RKObjectMapping.h