Return in doSave() the correct $affectedRows value.