Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

We've moved the forum!

Please use forum.silverstripe.org for any new questions (announcement).
The forum archive will stick around, but will be read only.

You can also use our Slack channel or StackOverflow to ask for help.
Check out our community overview for more options to contribute.

Data Model Questions /

Moderators: martimiz, Sean, Ed, biapar, Willr, Ingo, swaiba

Adding extra fields to a many many relationship


Go to End


2 Posts   5032 Views

Avatar
gened

Community Member, 10 Posts

30 May 2012 at 11:56am

Hi,

I am looking for a way to add extra fields to the many many join table between to 2 dataobjects. Basically I want to have a sort field for each relationship which would take an integer I can then easily sort in ascending order.

I am new to SS is there an easy way to do this? I have had a bit of a search around and found this - https://github.com/ajshort/silverstripe-itemsetfield

Any help, much appreciated
Gene

Avatar
frankmullenger

Forum Moderator, 53 Posts

30 May 2012 at 4:13pm

Hi Gene, $many_many_extraFields might be what you're looking for:
http://www.silverstripe.org/general-questions/show/7395