mirror of
https://github.com/zhigang1992/RestKit.git
synced 2026-04-24 04:46:01 +08:00
Add missing copy support for the entity and deletion predicate. closes #1184
This commit is contained in:
@@ -180,8 +180,10 @@ static BOOL entityIdentificationInferenceEnabled = YES;
|
||||
- (id)copyWithZone:(NSZone *)zone
|
||||
{
|
||||
RKEntityMapping *copy = [super copyWithZone:zone];
|
||||
copy.entity = self.entity;
|
||||
copy.identificationAttributes = self.identificationAttributes;
|
||||
copy.identificationPredicate = self.identificationPredicate;
|
||||
copy.deletionPredicate = self.deletionPredicate;
|
||||
|
||||
for (RKConnectionDescription *connection in self.connections) {
|
||||
[copy addConnection:[connection copy]];
|
||||
|
||||
Reference in New Issue
Block a user