I am looking for a hook with which I can tell the
Memento, to clear
the
old settings and write the new ones. Is there such a thing?
For example if the model knew it was about to be saved to it could
clear
out/reset its values in anticipation.
You could implement your own Memento, but usually it is more
complicated as the same descriptions could be used in many different
objects.
For me, most of the time I don't worry about these old settings.
Maybe you could run from time to time a batch job, that cleans up
orphaned settings?
Lukas
--
Lukas Renggli
http://www.lukas-renggli.ch