Updates an existing object in the database, only changing modified fields.
This method compares the old and new objects and only updates columns where values have changed. The 'id' property from the old object (or newer if old is null) is used to identify the row to update.
| old |
The original object (can be null, in which case newer.id is used) |
| newer |
The updated object with new values |
|
true if an update was performed, false if nothing changed |