5453 Posts in 1674 Topics by 1198 members
|Go to End|
9 December 2009 at 1:40am Last edited: 9 December 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.
9 December 2009 at 1:53am Last edited: 9 December 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 !
9 December 2009 at 2:17am
I think I get it.
|Go to Top|