You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
For the A.hasOne(B, ...) relation, does this mean that A must have exactly one B or that A must have at most one B?
Also,
For example,
Post.hasOne(Geo, "geo", "geo_id", "associated.id").
User.hasOne(Geo, "geo", "geo_id", "associated.id").
School.hasOne(Geo, "geo", "geo_id", "associated.id").
How would you define the other direction of the relation?
We basically want to say something like 'Geo.belongsTo(Post || User || School,' but are not sure of the syntax.
The text was updated successfully, but these errors were encountered:
For the A.hasOne(B, ...) relation, does this mean that A must have exactly one B or that A must have at most one B?
Also,
For example,
Post.hasOne(Geo, "geo", "geo_id", "associated.id").
User.hasOne(Geo, "geo", "geo_id", "associated.id").
School.hasOne(Geo, "geo", "geo_id", "associated.id").
How would you define the other direction of the relation?
We basically want to say something like 'Geo.belongsTo(Post || User || School,' but are not sure of the syntax.
The text was updated successfully, but these errors were encountered: