HasOne
This operates exactly like the HasMany relationship, except it assumes there is only ever one child.
- Overview
- child_model_class
Overview
The only real difference between this and HasMany is that the HasMany column type will return a list of models, while this returns the first model.
child_model_class
Required