Noizu.Entity.Reference (NoizuLabs Entities v0.2.1)

A entity field type that is persisted as a ref/id of another field.

Summary

Functions

cast(v)

Casts to Ref.

cast!(value)

Same as cast/1 but raises Ecto.CastError on invalid arguments.

ecto_gen_string(prefix)

Callback implementation for Noizu.Entity.Field.Behaviour.ecto_gen_string/1.

embed_as(_)

Callback implementation for Ecto.Type.embed_as/1.

entity(reference, context)

equal?(term1, term2)

Callback implementation for Ecto.Type.equal?/2.

id(reference)

load(v)

Callback implementation for Ecto.Type.load/1.

ref(reference)

stub()

Callback implementation for Noizu.Entity.Field.Behaviour.stub/0.

type__after_delete(field_type, settings, context, options)

Callback implementation for Noizu.Entity.Field.Behaviour.type__after_delete/4.

type__before_create(field_type, settings, context, options)

Callback implementation for Noizu.Entity.Field.Behaviour.type__before_create/4.

type__before_update(field_type, settings, context, options)

Callback implementation for Noizu.Entity.Field.Behaviour.type__before_update/4.

type_as_entity(this, _, _)

Callback implementation for Noizu.Entity.Field.Behaviour.type_as_entity/3.