Imagine this entity:
$id = 1;
$name = 'some name';
$credits = 3000;
$email = '
[hidden email]';
I can load this entity with: $mapper->findBy(Name/Email)($value);
And I can store this entity back into the database. However, I can not find a way to store this entity without re-storing every value (since my entity does not contain the originals).
In my opinion it is slower to perform an update on every column, but next to my opinion it could be a security risk if for example the credits became less just after loading the entity. If I change the email, store it back into the database the credits are back to the old value.
Is there maybe a sample, or another aproach on how to do this properly without too much hassle?
Regards