Looks like I’ve found another issue with relationships in the iOS SDK. Trying to build a reproducible test case and investigate more now. The AMF received back from the server always seems to be correct (at least it looks correct in my proxy tool).
My current test project makes a find
request for League
and then immediately makes a findById
for the single returned League
. In the response for the findById
it lists the Competitor
relationship contents. Most of the time it works fine, but sometimes the relationship contains Game
instances instead of Competitors
.
When the above process is complete and a success it starts again immediately. In the last run it worked correctly 5 times and then failed. The app was doing nothing else during this test and the server wasn’t updated with any changes. There is no custom business logic in this test.
Competitor
does have a relationship to Game
. Pretty much all relationships are defined as auto-load so the response creates a complete object graph. The object graph shouldn’t ever be very big for this project so I’m not concerned about performance issues, I care more about simplicity in this case.