Consider two models A and B
A
B
A -> relatedTo B is a one to one relationship
one to one
What is the differ
No, the difference depends on where your foreign key is.
In your example, if A has a b_id column, then A belongsTo B.
b_id
belongsTo
If B has an a_id column, then A hasOne or hasMany B depending on how many B should have.
a_id
hasOne
hasMany