Refactored managed object caches and connection support to enable connecting by multiple atributes that are specified as arrays.

* Migrated the caches to return `NSSet` to eliminate duplicate objects when your cache keys overlap
* Introduced new recursive strategy for building cache keys in `RKInMemoryManagedObjectCache`
* Added support for array cache key values in `RKFetchRequestManagedObjectCache`
* Re-enabled a slew of tests that were disabled during 0.20 development
This commit is contained in:
Blake Watters
2012-12-06 23:43:06 -05:00
parent 07c22fb3a0
commit 79e31b524a
16 changed files with 769 additions and 1010 deletions

View File

@@ -38,9 +38,9 @@
@param attributeValues A dictionary specifying the attribute criteria for retrieving managed objects.
@param managedObjectContext The context to fetch the matching objects in.
*/
- (NSArray *)managedObjectsWithEntity:(NSEntityDescription *)entity
attributeValues:(NSDictionary *)attributeValues
inManagedObjectContext:(NSManagedObjectContext *)managedObjectContext;
- (NSSet *)managedObjectsWithEntity:(NSEntityDescription *)entity
attributeValues:(NSDictionary *)attributeValues
inManagedObjectContext:(NSManagedObjectContext *)managedObjectContext;
///---------------------------------------------------
/// @name Handling Managed Object Change Notifications