That was a really nice, exactly what I needed.
I was *starting* to think about that. You, kind Sir, just saved me a lot of
time =]
I've been struggling with history lately. Since you mentioned, there's
something I can't quite understand yet.
Say a User wants to update his Profile.
So, I guess I'd make a dup of this Profile, save the new one and leave the
old one for history.
How would I know that the most recent one is the current Profile without
changing something on the old one?
I may be locked in a wrong mindset here, but I think I'd need an "active:
bool" field or some other flag
to set to "false" on the old one and would be "true" for the new one.
Then, Id search for the-one-True-Profile whenever I need that User's
profile.
And, by the way: if we alter the Profile, didn't we just alter the User?
Those were the things I'd spend the week googling and reading about, I
guess.
If anyone could shed some light on those questions, that would be awesome.
Thanks, and congrats on a great blog post!
--
GrÃŒÃe,
Thyago Barbosa Rodrigues
"Who loves not wine, women and song,
remains a fool his whole life long"
(Martin Luther)
"Phantasie ist wichtiger als Wissen, denn Wissen ist begrenzt." (Albert
Einstein)