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're retiring the forums!

The SilverStripe forums have passed their heyday. They'll stick around, but will be read only. We'd encourage you to get involved in the community via the following channels instead:

Data Model Questions /

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

Adding extra fields to a many many relationship


Go to End


2 Posts   3919 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