Jump to:

7940 Posts in 1543 Topics by 946 members

DataObjectManager Module

SilverStripe Forums » DataObjectManager Module » FilteredDropdownSet and has_many relationships

Discuss the DataObjectManager module, and the related ImageGallery module.

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

Page: 1
Go to End
Author Topic: 2131 Views
  • ccburns
    Avatar
    Community Member
    74 Posts

    FilteredDropdownSet and has_many relationships Link to this post

    Hi Unclecheese,

    Just a quick question. I am trying to use FilteredDropdownSet(). Your example uses a has_one relationship so I don't know if it is even possible.

    I have a Company Object which has a has_many relationship with Contact and the contact a has_one relationship with Company.

    What I am trying to do is select a Company and then just show the members from that specific company for the user to select. This will then return the CompanyID and the ContactID for to record in the object.

    Is this possible and I am just doing something wrong or is FilteredDropdownSet() not possible on has_many relationships?

    Cheers,
    Colin

    2131 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.