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.

Data Model Questions /

Adding extra fields to a many many relationship


Reply


2 Posts   1896 Views

Avatar
senorgeno

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