Ecto.Association.Has
Ecto.Association.Has
The association struct for has_one
and has_many
associations.
Its fields are:
-
cardinality
- The association cardinality -
field
- The name of the association field on the schema -
owner
- The schema where the association was defined -
related
- The schema that is associated -
owner_key
- The key on theowner
schema used for the association -
related_key
- The key on therelated
schema used for the association -
queryable
- The real query to use for querying association -
on_delete
- The action taken on associations when s