The setAssociation mixin applied to models with hasOne. An example of usage is as follows:
class User extends Model<InferAttributes<User>, InferCreationAttributes<User>> { declare setRole: HasOneSetAssociationMixin<Role, Role['id']>;}User.hasOne(Role); Copy
class User extends Model<InferAttributes<User>, InferCreationAttributes<User>> { declare setRole: HasOneSetAssociationMixin<Role, Role['id']>;}User.hasOne(Role);
Optional
Model.hasOne
The setAssociation mixin applied to models with hasOne. An example of usage is as follows: