Jump to:

5450 Posts in 1672 Topics by 1197 members

Customising the CMS

SilverStripe Forums » Customising the CMS » Table realtion: relation to relation to realtion

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

Page: 1
Go to End
Author Topic: 626 Views
  • Jarek
    Avatar
    Community Member
    30 Posts

    Table realtion: relation to relation to realtion Link to this post

    Hello

    I've table that stores car information. I want to have model and mark data. The solution is to create Model and Mark tables:

    Model -> has_one Mark
    Mark -> has_many Model
    Car (main table) -> has_one Mark

    I've created additional Tab to define car Mark (in cms). On this tab is standard link "Add Mark". This links opens popup window where new Mark can be defined. How can I extend this popup to add Mark and Model at the same time (with adding correct relation beetwen Mark and Model)?

    I can define direct relation beetwen Car and Model but this is redundant.

    Thx for any help

    626 Views
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.