Jump to:

23376 Posts in 18295 Topics by 2867 members

General Questions

SilverStripe Forums » General Questions » Getting Relationship before DO is created?

General questions about getting started with SilverStripe that don't fit in any of the categories above.

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

Page: 1
Go to End
Author Topic: 203 Views
  • sonet
    Avatar
    Community Member
    33 Posts

    Getting Relationship before DO is created? Link to this post

    Hi, I am wondering if there is a better solution for the following:
    - TourPage has_many Routes has_many Places.
    - when clicking on "Create a new Place" the object does not exists yet (it does not have an ID/HasManyID (until it is saved to the database)

    Is it possible to get the RouteID within the Place getCMSFields() (that is being called during the form scaffolding before the DO is saved/created)?

    As of now I am asking the user to save the object first before showing the relationship dependent fields.

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