The model on which Model.belongsTo has been called, on which the association methods, as well as the foreign key attribute, will be added.
The model passed to Model.belongsTo.
The name of the Foreign Key attribute on the Source model.
The name of the attribute that the foreign key in the source model will reference, typically the Primary Key.
The column name of the foreign key
A reference to the association that created this one.
The column name of the target key
The identifier of the relation on the source model.
The type of the association. One of
The attribute name of the identifier
use foreignKey instead
negate isMultiAssociation instead
Creating an associations can automatically create other associations. This returns the initial association that caused the creation of the descendant associations.
Create a new instance of the associated model and associate it with this.
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
Generated using TypeDoc