This commit is contained in:
Gwendal Roué committed 2019-05-17 18:16:01 +02:00
1 parent c5ac0ea941
commit 2a85d89364
2 files changed
+2 -2

No files matched your search

@@ -119,7 +119,7 @@ extension TableRecord where Self: EncodableRecord {
let destinationRelation = association.sqlAssociation.destinationRelation(fromOriginRows: { db in
try [Row(PersistenceContainer(db, self))]
})
return QueryInterfaceRequest<A.RowDecoder>(relation: destinationRelation)
return QueryInterfaceRequest(relation: destinationRelation)
}
}
@@ -39,7 +39,7 @@ public struct QueryInterfaceRequest<T> {
self.init(query: SQLSelectQuery(relation: relation))
}
@usableFromInline
@usableFromInline // TODO: should not be @usableFromInline
var prefetchedAssociations: [SQLAssociation] {
return query.relation.prefetchedAssociations
}