2008/11/18 nicholas <[EMAIL PROTECTED]>:
>
> So I am trying to do something interesting with my classes.
>
> I am trying to implement history in the database.
> To keep the ORM simple, they way I am approaching it is to have two
> objects (Host vs HostRevision)  and two tables (host vs host_revision)
> that are connected by triggers.
(...)
> Basically whenever I add a field to the first one, the second one
> needs to have the field two.
(...)
> Could I have some guidance at when to do that and what data to pull
> from where?

I haven't used yet but
http://elixir.ematia.de/apidocs/elixir.ext.versioned.html probably
does it, since it creates the second table automatically. I believe
it's worth taking a look at anyway. To get your changes on your model
reflected to your database, you'd have to use a third party module.
Recently on this list someone has recommended
http://trac.ollix.org/miruku

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"SQLElixir" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/sqlelixir?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to