View Source Needle.Changesets (Bonfire v0.9.11-social-beta.6)

Summary

Functions

Like Ecto.build_assoc/3, but can work with a Changeset

True if the schema object's current state is :built

Like Ecto.Changeset.cast but for Pointables, Virtuals and Mixins.

True if the schema object's current state is :deleted

True if the schema object's current state is :loaded

Like put_assoc!/3 but doesn't raise if the association doesn't exist

Like Ecto.Changeset.put_assoc/3 but for Pointables, Virtuals and Mixins.

Returns the schema object's current state.

true if the provided changeset or list of changesets is valid.

Functions

build_assoc(changeset, assoc_key, rel)

Like Ecto.build_assoc/3, but can work with a Changeset

built?(arg1)

True if the schema object's current state is :built

cast(changeset, params, cols)

Like Ecto.Changeset.cast but for Pointables, Virtuals and Mixins.

If a pointable or virtual, Generates an ID if one is not present.

cast_assoc(changeset, assoc_key, opts \\ [])

cast_belongs_to(changeset, assoc_key, assoc, opts)

cast_has_many(changeset, assoc_key, assoc, opts)

cast_has_one(changeset, assoc_key, assoc, opts)

config_for(module, key, default \\ [])

deleted?(arg1)

True if the schema object's current state is :deleted

get_field(cs, key)

insert_verb(thing)

loaded?(arg1)

True if the schema object's current state is :loaded

merge_child_errors(cs)

put_assoc(changeset, assoc_key, rels)

Like put_assoc!/3 but doesn't raise if the association doesn't exist

put_assoc!(changeset, assoc_key, rels)

Like Ecto.Changeset.put_assoc/3 but for Pointables, Virtuals and Mixins.

Copies across keys where possible.

put_id_on_mixins(attrs, mixin_names, pointable)

put_new_id(changeset, schema)

state(thing)

Returns the schema object's current state.

update_data(changeset, fun)

valid?(cs)

true if the provided changeset or list of changesets is valid.