Jump to:

3461 Posts in 1065 Topics by 740 members

Data Model Questions

SilverStripe Forums » Data Model Questions » Many-Many-Relation: How to add details?

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

Page: 1
Go to End
Author Topic: 1790 Views
  • NicolasLeuenberger
    Community Member
    9 Posts

    Many-Many-Relation: How to add details? Link to this post


    I'm building a homepage for our actors group. I've got a page class ActorPage on which I display a list of the plays this actor has been in. To do this, I've installed a many-many-relation to the PlayPage class.
    So far so good, this works.

    But now I would like to add additional information to this relation: Which was the team members role?
    I have no idea how to achieve this. I guess the information should be stored in the playpage_actorpages table in the database where the relation is stored. But is there a way to write to that database?

    Any help is appreciated.

    Thanks, Nicolas

  • dospuntocero
    Community Member
    54 Posts

    Re: Many-Many-Relation: How to add details? Link to this post

    Hi Nicolas, you need to store the additional data using DataObjects, look in the tutorial for dataobjects - relationships

    good luck!

Page: 1
Go to Top

Want to know more about the company that brought you SilverStripe? Then check out SilverStripe.com

Comments on this website? Please give feedback.