Stu,

I made this little dm standalone script http://gist.github.com/66159
and it seems to me that dm doesn't try to do STI if you don't
explicitly tell it to do so via adding a Discriminator property.

What queries are looking for a model_id attribute?

cheers
snusnu

On Wed, Feb 18, 2009 at 00:59, Stu <[email protected]> wrote:
>
> Hi,
>
> I'd like to do something like this with DataMapper:
>
> <pre>
>    class Model
>
>          include DataMapper::Resource
>
>          # common methods
>    end
>
>
>    class Foo < Model
>        # Foo specific details
>    end
> </pre>
>
> But I think this is triggering DM's single table inheritance as the
> generated queries
> are looking for an attribute "model_id", even though I haven't used a
> discriminator
> property.
>
> Is there some way to do this without triggering STI in DataMapper?
>
> Thanks,
>
> Stu
> >
>

--~--~---------~--~----~------------~-------~--~----~
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