This commit is contained in:
Gwendal Roué committed 2021-05-04 07:27:21 +02:00
1 parent 095bfde072
commit 148897ad73
1 file changed
+1 -1
@@ -53,7 +53,7 @@ extension QueryInterfaceRequest: FetchRequest {
let associations = relation.prefetchedAssociations
if associations.isEmpty == false {
// Eager loading of prefetched associations
preparedRequest = preparedRequest.with(\.supplementaryFetch) { [relation] db, rows in
preparedRequest.supplementaryFetch = { [relation] db, rows in
try prefetch(db, associations: associations, from: relation, into: rows)
}
}