I'm actually confused about using either hasOne()
or belongsTo()
relationship. Assuming the relation is 1:1
. Then which one?
- An invoice hasOne a customer?
- An invoice belongsTo a customer?
Noted that I've implemented both, and they works well .. But what's the standard one? When should I use which one?