add new function for updating with save method. Clear the associated table's fk value if their associations breaks when saving the O side model