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

Junction or Link Table using Silverstripe ORM


Go to End


969 Views

Avatar
SilverstripeNewbie

Community Member, 14 Posts

21 September 2015 at 5:37am

A school includes two groups: Students and Classes. One student can attend many classes, and one class can contain many students. Hence, the "many-to-many" relationship between students and classes. How do you relate the two groups using a Junction Table using Silverstripe's ORM?