Where clauses are now more strict with the argument types

This commit is contained in:
John Estropia committed 2017-02-17 10:47:38 +09:00
1 parent 03973790a8
commit d2fd03c1f0
5 files changed
+439 -277

No files matched your search

+2 -2
View File
@@ -85,7 +85,7 @@ public final class CSWhere: NSObject, CSFetchClause, CSQueryClause, CSDeleteClau
- parameter value: the arguments for the `==` operator
*/
@objc
public convenience init(keyPath: KeyPath, isEqualTo value: NSObject?) {
public convenience init(keyPath: KeyPath, isEqualTo value: CoreDataNativeType?) {
self.init(Where(keyPath, isEqualTo: value))
}
@@ -97,7 +97,7 @@ public final class CSWhere: NSObject, CSFetchClause, CSQueryClause, CSDeleteClau
- parameter list: the array to check membership of
*/
@objc
public convenience init(keyPath: KeyPath, isMemberOf list: [NSObject]) {
public convenience init(keyPath: KeyPath, isMemberOf list: [CoreDataNativeType]) {
self.init(Where(keyPath, isMemberOf: list))
}