hasOne model relationship select list options

I have model like client->project where each project has a foreign key client_id linked to a client. How do I create select list options in the select list that reference clients ?
1 Reply
harps
harpsOP2y ago
changing the model to belongsTo and using ->relationship() worked and seemed to make sense.

Did you find this page helpful?