On Sat, Jan 10, 2009 at 3:37 PM, Dan Kubb (dkubb) <[email protected]> wrote:
>
> Hi Pat,
>
>> I put an inherited hook on the base class that adds any subclasses to
>> the list of DM descendents.  Then when I do DataMapper.auto_upgrade!
>> it works fine.  http://gist.github.com/45543
>>
>> I don't know if this should be a part of DM::Resource itself or
>> not...I know that ORM inheritance is a tricky thing and there's
>> probably a reason why this isn't done automatically.
>
> STI was actually added relatively recently in DM's history, and I
> think there are still a couple of edge cases like this with STI not
> being taken into account.  In this case I would expect all the
> properties in the parent and children to be taking into account for
> auto-upgrading.
>
> Please check http://datamapper.lighthouseapp.com/ to see if there's a
> duplicate ticket (they appear to be down right now otherwise I would
> do this and point you to it), and if not, please create one with this
> issue.
>
> Dan
> (dkubb)

Ticket @ http://is.gd/fgSN

Pat

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"DataMapper" 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/datamapper?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to