We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 85d948c commit cfb92aeCopy full SHA for cfb92ae
1 file changed
Tests/CoreModelTests/TestModel.swift
@@ -49,11 +49,12 @@ extension Person: Entity {
49
50
static var relationships: [CodingKeys: Relationship] {
51
[
52
- .events: .init(
53
- id: PropertyKey(CodingKeys.events),
+ .events: Relationship(
+ id: .events,
54
+ entity: Person.self,
55
+ destination: Event.self,
56
type: .toMany,
- destinationEntity: Event.entityName,
- inverseRelationship: PropertyKey(Event.CodingKeys.people)
57
+ inverseRelationship: .people
58
)
59
]
60
}
0 commit comments