View Source Needle.Changesets (needle v0.8.0)
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
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.
If a pointable or virtual, Generates an ID if one is not present.
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.
Copies across keys where possible.
Returns the schema object's current state.
true if the provided changeset or list of changesets is valid.