Files
RestKit/Code/ObjectMapping/RKObjectRelationshipMapping.h
Ed McManus ecf808af1a Added boolean "reversible" property to RKObjectRelationshipMapping. This can be used to break cyclical
relationships in the object mapping graph. Relationships can be optionally included in an inverse mapping
generation for serialization purposes.
2011-06-11 20:25:28 -04:00

27 lines
850 B
Objective-C

//
// RKObjectRelationshipMapping.h
// RestKit
//
// Created by Blake Watters on 5/4/11.
// Copyright 2011 Two Toasters. All rights reserved.
//
#import <Foundation/Foundation.h>
#import "RKObjectAttributeMapping.h"
@class RKObjectMapping;
@interface RKObjectRelationshipMapping : RKObjectAttributeMapping {
RKObjectMapping* _objectMapping;
BOOL _reversible;
}
@property (nonatomic, retain) RKObjectMapping* objectMapping;
@property (nonatomic, assign) BOOL reversible;
+ (RKObjectRelationshipMapping*) mappingFromKeyPath:(NSString*)sourceKeyPath toKeyPath:(NSString*)destinationKeyPath objectMapping:(RKObjectMapping*)objectMapping;
+ (RKObjectRelationshipMapping*) mappingFromKeyPath:(NSString*)sourceKeyPath toKeyPath:(NSString*)destinationKeyPath objectMapping:(RKObjectMapping*)objectMapping reversible:(BOOL)reversible;
@end