Conversation

My weekend of SwiftData continues.

Relationships are interesting - perhaps I missed this in the video - even though they need to be two way as in CoreData - they seem to be only defined as relationships at one end and a property at the other end is designated as the inverse.

It makes sense - though the code that Xcode generates from CoreData creates relationships at both ends (and you get a complaint about a circular definition)

2
0
0
@dimsumthinking I really couldn’t make relationships work with beta 1. Meant to try again later but have not gone back yet ….
1
0
0

@f Well it would be premature to say that I have them working - I do have them compiling so that's a start

1
0
0
@dimsumthinking Yeah, I couldn’t get my project to even compile with a relationship, if I recall correctly 🙂 So you’re already further ahead than I am …
0
0
0

@dimsumthinking I filed a TSI about this but haven’t to hear back about it.

1
0
0