The model on which Model.hasOne has been called, on which the association methods will be added.
The model passed to Model.hasOne. This model will receive the Foreign Key attribute.
The name of the attribute that the foreign key in the target model will reference.
The name of the Foreign Key attribute on the Target model.
The name of the Primary Key attribute of the Target model. Used by HasOneSetAssociationMixin.
A reference to the association that created this one.
The identifier of the relation on the source model.
The type of the association. One of
The column name of the foreign key (on the target model)
negate isMultiAssociation instead
Creating an associations can automatically create other associations. This returns the initial association that caused the creation of the descendant associations.
The Column Name of the source key.
Create a new instance of the associated model and associate it with this.
See Model.create for a full explanation of options.
The created target model
Get the associated instance.
Set the associated model.
the source instance
An persisted instance or the primary key of an instance to associate with this. Pass
null to remove the association.
Options passed to getAssociation and
The associated instance, or null if disassociated.
Generated using TypeDoc