Skip to main content

Module dependency_graph

Module dependency_graph 

Source
Expand description

Dependency graph and topological sort โ€” determines entity save order.

Principals (independent entities) are ordered before dependents (entities with foreign keys pointing at principals). Delete order is the reverse.

Self-referential relationships (a type with a HasMany pointing at itself) do not affect type-level ordering โ€” instance-level ordering is handled by the cascade drain + FK fixup pipeline.

Structsยง

DependencyGraph