Major overhaul to the Core Data managed object identification and relationship connection support.

* Replaces primary key with `RKEntityIdentifier`
* Add support for use of compound keys for object identification
* Refactor `RKConnectionMapping` to `RKConnectionDescription` and add support for connecting with multiple attributes
* Clarify naming of representation key methods to better match naming conventions
* Add type transformation support for object identification
* Greatly expand test coverage for object identification
* Drop the `NSEntityDescription` category
* Simplify the `RKManagedObjectCaching` protocol
* Add compound key support to the Fetch Request and In Memory Cache implementations
* Replace Kiwi with Specta for tests where contexts are helpful for organization
* Rename `defaultValueForMissingAttribute` to `defaultValueForAttribute`
This commit is contained in:
Blake Watters
2012-11-27 10:29:36 -05:00
parent f3a853e871
commit 8dc54a89b2
50 changed files with 2126 additions and 912 deletions

View File

@@ -90,23 +90,6 @@
/// @name Creating Paths from Objects
///----------------------------------
/**
Generates a new path by interpolating the properties of the 'object' argument, assuming the existence of a previously specified pattern established via `pathMatcherWithPattern:`. Otherwise, this method is identical in function to `RKPathFromPatternWithObject` (in fact it is a shortcut for this method).
For example, given an 'article' object with an 'articleID' property value of 12345 ...
RKPathMatcher *matcher = [RKPathMatcher pathMatcherWithPattern:@"/articles/:articleID"];
NSString *path = [matcher pathFromObject:article];
... will produce a 'path' containing the string "/articles/12345"
@param object The object containing the properties to interpolate.
@return A string with the object's interpolated property values inserted into the receiver's established pattern.
@see `RKPathFromPatternWithObject`
@see `RKRouter`
*/
- (NSString *)pathFromObject:(id)object DEPRECATED_ATTRIBUTE;
/**
Generates a path by interpolating the properties of the 'object' argument, assuming the existence of a previously specified pattern established via `pathMatcherWithPattern:`. Otherwise, this method is identical in function to `RKPathFromPatternWithObject` (in fact it is a shortcut for this method).