
Self-referential Many to Many
Reported by smoofles | December 20th, 2008 @ 03:04 PM
If a model is described as:
class Topic
include DataMapper::Resource
property :somestring, String, :length => 255
property :topic_id, Integer
belongs_to :topic
has n, :topics, :through => DataMapper::Resource
is :list, :scope => [:topic_id]
end
The migration created a topics_topics
table in the
database that only has one row – topics_id
Comments and changes to this ticket
-
Dan Kubb (dkubb) January 8th, 2009 @ 05:17 AM
- State changed from unconfirmed to accepted
- Assigned user set to Dan Kubb (dkubb)
-
Dan Kubb (dkubb) June 16th, 2009 @ 03:31 AM
- Milestone set to 0.10.0
-
Dan Kubb (dkubb) October 4th, 2009 @ 09:33 PM
- Milestone changed from 0.10.0 to 0.10.2
[project:id#20609 not-tagged:"0.10.0" milestone:id#51895 bulk edit command]
-
Jox December 21st, 2009 @ 08:49 AM
- Tag set to many-to-many, self-referential
-
Dan Kubb (dkubb) February 1st, 2010 @ 04:33 PM
- Milestone changed from 0.10.2 to 1.0.0
-
-
-
Dan Kubb (dkubb) February 2nd, 2010 @ 02:47 AM
- State changed from accepted to confirmed
Please Sign in or create a free account to add a new ticket.
With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.
Create your profile
Help contribute to this project by taking a few moments to create your personal profile. Create your profile »