Hi All,
I'm currently busy with a project that requires me to save versions of a text input connected to a Member.
How i imagined it is as follows; I have a Member that has a $has_many relation to the DataObject ProjectDescription.
So every time a Member would save his/her project description it would create an altered copy of the previous description (if there is a last one).
The problem i'm having now is how would i go about the creating a copy and saving a new one. Because it is connected to a Member i would first need to get the Current Member and his/her last Description. but then what? Do i populateDefaults with the previous data, then save a new one onBeforeWrite ?
Any help or advice would be much appreciated!
Thanks,
Bram