mirror of
https://github.com/zhigang1992/RestKit.git
synced 2026-04-24 04:46:01 +08:00
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:
@@ -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).
|
||||
|
||||
|
||||
Reference in New Issue
Block a user