3375 Posts in 999 Topics by 712 members
|Go to End|
28 January 2011 at 2:44am
I have a many to many relationship between two DataObjects. So in the database I have a table called Object1_Object2 that stores the two IDs of each of the objects. Is there a way I can store in this table a description of the relationship between the two?
And how can this be represented in a class?
Can anybody point me in the right direction?
28 January 2011 at 3:33am
I haven't used it, but I believe "many_many_extraFields" on DataObject is what you are looking for.
28 January 2011 at 3:45am
Thanks for the quick reply! And from Bristol ;)
That sounds like it's the right thing, I will look into that right now.
P.S. Do you know any other SilverStripe people in Bristol? Maybe could meet up sometime?
28 January 2011 at 3:58am
Yar! there are three of us in the office and I know of one other freelancer who lives here - I'll bet there are more because of the number of web agencies here. I previously suggested a meet up (as I've been to the London meetups but they are quite a trip!) - so I am very interested to meet and discuss silverstripe
28 January 2011 at 4:01am
Yes, I've been to some of those, but not at the same time. I'll email ;)
|Go to Top|