FetchedRecordsController's ObservedRequest adopts TypedFetchRequest

This commit is contained in:
Gwendal Roué committed 2016-12-07 22:39:53 +01:00
1 parent 89e7a62d99
commit 0008e4b645
3 files changed
+8 -6

No files matched your search

@@ -92,7 +92,7 @@ struct QueryInterfaceSelectQueryDefinition {
/// Returns a fetch request that counts the number of rows matched by self.
var countRequest: AnyTypedFetchRequest<Int> {
return AnyTypedFetchRequest(untypedRequest: countQuery)
return countQuery.bound(to: Int.self)
}
private var countQuery: QueryInterfaceSelectQueryDefinition {