I have this model
class License
  has n, :slots
  has n, :runtime_licenses
end

class Slot
  belongs_to :license
end

class RuntimeLicense
  has n, :slots
end

How can I have only one slot model that is used in both licenses?
Each slot can only belong to one license.
In rails I would use polymorphic association but how to do that in dm?

Thanks,
Phil

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