Hi
--- EDIT ---
Just in order to make my problem clear to everyone.
What I'm trying to do here is having 2 lists of Members on a class. This is because I want to have a list of administrators and a list of users. I could also, if possible, put a boolean on the relation table indicating wheater the member is admin or not. But I havent found a way to "decorate" the relation table...
Thanks again - Any input is appreciated!
I have decorated the standard Member class with DataObjectDecorator. I have an entity that has a many_many relation with Member.
Group : many_many(Members =>Member)
Member : belongs_many_many(Groups => Group)
The relation table created (Group_Members) contains ID, GroupID and MemberID. I would like to add another field to the relation to tell if a Member in the Group is Admin in this specific Group. Since a Member can belong to several Groups the field can not be on the Member.
I have also tried to have two Member lists (GroupAdmins and GroupMembers) - But the fix with class.field doesn't seem to apply for the many_many/belongs_many_many relation (http://open.silverstripe.org/ticket/4632)
Any ideas?
Thank you!