Hallo Community,
I'm working with silverstripe for several years now, but to be honest, I don't really understand how to solve this.
i have two DataObjects:
class Competition extends DataObject{
...
private static $has_one = array(
'Project' => 'Project'
);
...
and
class Project extends DataObject{
...
private static $belongs_to = array(
'Competition' => 'Competition.Project'
);
...
I understand that on Competition there is a DropdownField to set ProjectID.
But how can I set the relation when editing the Project?
It can't be that complicated to add a similar DropdownField in the Project-Form, but I just can't figure out and feel really dumb as I wasn't even able to find examples via google.
any help appreciated,
cheers,
Ralf