Relational data save issue

Hi,

I have a objectA in database. Now I am creating another objectB that has a relational property objectA.
After I save objectB, the property value of objectA are updated too.

I am working on iOS.

Hi, Weinan!

Let me clarify your case:

  1. You save objectA in database
  2. You change your objectA properties in your code.
  3. Then you construct objectB in your code and create relation to objectA in it.
  4. You save objectB in database.
    Result - objectB is saved and objectA properties are updated.
    If it is your case - it is valid.

Thank you Anatolii!

I figured out the issue. When I fetch the objects, I did not set the depth that resulted relational object was not fetched. This has just been solve.