Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

We're retiring the forums!

The SilverStripe forums have passed their heyday. They'll stick around, but will be read only. We'd encourage you to get involved in the community via the following channels instead:

Customising the CMS /

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

Modify FileField

Go to End

19 Posts   4131 Views


Community Member, 37 Posts

9 December 2009 at 1:40am

Edited: 09/12/2009 1:40am

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.


Community Member, 791 Posts

9 December 2009 at 1:53am

Edited: 09/12/2009 2:20am


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 !


Community Member, 37 Posts

9 December 2009 at 2:17am

I think I get it.

Thanks again.

Go to Top