I'm building out my first SS 3.0 site, and am finding a new enjoyment to coding in SilverStripe which is awesome.
One part of the new site I'm building is wanting to add in UI to manage a 1 to 1 relationship. Looking at the core dev discussions there was some discussions previously saying that true 1 to 1 relationships weren't supported but the general consensus was something that the team wanted added.
Is there a way to achieve it in 3.0?
For a bit of context, I have a location dataobject that describes practice locations for a collective of surgeons, but I wanted to use the same location object to attach to the contact page to describe the collective's general office details.
This is the specifics in terms of the relationships:
Surgeon has_many Locations ContactPage has_one Location Location has_one Surgeon Location has_one ContactPage
I'd prefer to not have to embed a copy of the location fields into the contactpage - which is the only way I know how to achieve it now. If I can though I'd prefer to be a bit smarter about this. Ideally, I'd love to be able to have the Location forms embedded in the admin UI for the ContactPage, so the user could edit the general ContactPage information, as well as the Location information with a single save.