I have no idea why that works, but it does.
Thanks a lot.
It would be great if you could explain what that ID thing means though.
I hate not understanding.
This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.
Please use forum.silverstripe.org for any new questions
(announcement).
The forum archive will stick around, but will be read only.
You can also use our Slack channel
or StackOverflow to ask for help.
Check out our community overview for more options to contribute.
I have no idea why that works, but it does.
Thanks a lot.
It would be great if you could explain what that ID thing means though.
I hate not understanding.
;-)
It might be a little unclear from the docs .. But if you create a has_one relationship , the framework creates a foreign key for the related table in the database table ...
so if you have a student HAS ONE address it will create an addressID column in your student table... When selecting an address in a dropdown , you are effectively selecting a database-ID , and want to write that in your addressID field in your student-table...
Hope that clears it up .. good luck !
I think I get it.
Thanks again.