Save method iOS SDK 4.0.7 not working

I just manage to save a new record in the Photo Table.

The issue seems to be with the relations. I passed nil to booth var photo.user and photo.location and the record was saved.

Does this mean that for saving the relations between tables, they have to be done separately???

Thanks