Save Operation

The save operation saves a record to the local database. In the case of an existing record, a save operation calls the update operation. If a record does not exist, the save operation creates a new record. If save is called on the parent MBO in an existing composite object, the save operation will also be called on all the child objects in the composite object.

(void)save
SMP101Customer *customer = [ SMP101Customer find: 32]
//Change some attribute of the customer record
customer.fname= @"New Name";
[customer save];
[SMP101SMP101DB synchronize];