View Source Ecspanse.Component.Parents (ECSpanse v0.9.0)

The Parents component is a special component provided by the framework to maintain references to an entity's parent entities.

Dedicated queries and commands are provided to interact with this component.

An empty Parents component is automatically added upon entity creation, even if no parent entities are defined at the time of creation.

Ecspanse parent-child relationships are bidirectional associations

Summary

Types

t()

Entity's parents list.

Types

@type t() :: %Ecspanse.Component.Parents{
  __meta__: term(),
  entities: [Ecspanse.Entity.t()]
}

Entity's parents list.