View Source Ecto.Embedded (Ecto v3.12.1)
The embedding struct for embeds_one
and embeds_many
.
Its fields are:
cardinality
- The association cardinalityfield
- The name of the association field on the schemaowner
- The schema where the association was definedrelated
- The schema that is embeddedon_cast
- Function name to call by default when casting embedson_replace
- The action taken on associations when schema is replaced