Given the following:
$userMapper = new UserMapper($db);
$user = $userMapper->find(381);
$user->name = 'Derp' //was Durr
$userMapper->save($user);
Is it worth building logic into the UserMapper to detect that only name
has changed, so as to build a slimmer UPDATE query? Or is it simpler just to update the whole record for the user from all of the fields in the user object?
I assume MySQL update performance between a single field, and fifty fields, is rather negligible?