Skip to main content

Module active_entity_ext

Module active_entity_ext 

Source
Expand description

Relationship traversal from a loaded record handle.

The record-level equivalent of Table::get_ref_from_row: launch.get_ref::<LaunchCrew>("launch_crew") returns the child table scoped to that launch, carrying the foreign-key invariant so inserts conform. ActiveEntity and ActiveRecord live in vantage-dataset and know nothing about Table, hence an extension trait here.

Traitsยง

GetRefExt
Traverse a relation from a loaded record.