WIP: Updating README and other docs. Some minor fixes

This commit is contained in:
John Rommel Estropia
2017-05-22 01:27:38 +09:00
parent da3a9590ac
commit b9b96d1a35
13 changed files with 380 additions and 326 deletions

View File

@@ -148,7 +148,7 @@ public struct Where: FetchClause, QueryClause, DeleteClause, Hashable {
self.init(NSPredicate(format: "\(keyPath) == nil"))
case let object?:
self.init(NSPredicate(format: "\(keyPath) == %@", argumentArray: [object.cs_toRaw().objectID]))
self.init(NSPredicate(format: "\(keyPath) == %@", argumentArray: [object.cs_id()]))
}
}
@@ -171,7 +171,7 @@ public struct Where: FetchClause, QueryClause, DeleteClause, Hashable {
*/
public init<S: Sequence>(_ keyPath: KeyPath, isMemberOf list: S) where S.Iterator.Element: DynamicObject {
self.init(NSPredicate(format: "\(keyPath) IN %@", list.map({ $0.cs_toRaw().objectID }) as NSArray))
self.init(NSPredicate(format: "\(keyPath) IN %@", list.map({ $0.cs_id() }) as NSArray))
}
/**