On this page
Ecto.Association.ManyToMany
The association struct for many_to_many associations.
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 associatedowner_key- The key on theownerschema used for the associationqueryable- The real query to use for querying associationon_delete- The action taken on associations when schema is deletedon_replace- The action taken on associations when schema is replaceddefaults- Default fields used when building the associationrelationship- The relationship to the specified schema, default:childjoin_keys- The keyword list with many to many join keysjoin_through- Atom (representing a schema) or a string (representing a table) for many to many associationsjoin_defaults- A list of defaults for join associationspreload_order- Defaultorder_byof the association, used only by preload
Summary
Functions
Functions
assoc_query(refl, values)Source
© 2013 Plataformatec
© 2020 Dashbit
Licensed under the Apache License, Version 2.0.
https://hexdocs.pm/ecto/Ecto.Association.ManyToMany.html