Ecto v3.0.7 Ecto.Association.HasThrough View Source
The association struct for has_one
and has_many
through associations.
Its fields are:
cardinality
- The association cardinalityfield
- The name of the association field on the schemaowner
- The schema where the association was definedowner_key
- The key on theowner
schema used for the associationthrough
- The through associationsrelationship
- The relationship to the specified schema, default:child
Link to this section Summary
Functions
Performs the repository change on the association
Link to this section Functions
Performs the repository change on the association.
Receives the parent changeset, the current changesets and the repository action options. Must return the persisted struct (or nil) or the changeset error.
Callback implementation for c:Ecto.Association.on_repo_change/5
.