Add missing copy support for the entity and deletion predicate. closes #1184

This commit is contained in:
Blake Watters
2013-01-23 12:54:02 -05:00
parent 16eb7ed46e
commit 120584e320

View File

@@ -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]];