More Associations and inflections

This commit is contained in:
Gwendal Roué committed 2019-05-19 15:03:54 +02:00
1 parent a1b0baaca9
commit 8e2a8fe9d8
17 files changed
+236 -203

No files matched your search

+1 -1
View File
@@ -138,7 +138,7 @@ struct SQLRelation {
}
fileprivate func makeAssociationForKey(_ key: String) -> SQLAssociation {
let key = SQLAssociationKey(name: key, isInflectable: false)
let key = SQLAssociationKey.fixed(key)
return SQLAssociation(key: key, condition: condition, relation: relation, isSingular: kind.isSingular)
}