Support Topics Documentation Slack YouTube Blog

Saving related data


(Jorgen Andreasson) #1

I have a master object (FDWeek) which has 5 related objects (FDDay).

In v3 I could save the week and the days were automatically saved. This doesn’t seem to happen in v4.

What way should this be done now?
Save the days to get their objectIDs and them save the week to get its objectID and then setRelation?

Screen Shot 2018-01-28 at 13.37.05.png


(Sergey Chupov) #2

Hi Jorgen,

Save the days to get their objectIDs and them save the week to get its objectID and then setRelation?

Yes, that’s exactly what you need to do.


(Jorgen Andreasson) #3

Thanks,

What pity that you changed that API. It was so nice before.