Relation Context

Relation context provides data about entity relationships.

Relation Structure

Module Information

Property Information

Type Information

Import Example

Type Definition Example

Real Template Snippet

Relation Types

  • one-to-one - Single related entity
  • one-to-many - Array of related entities
  • many-to-one - Single parent entity
  • many-to-many - Array with join table

Relation context enables proper import statements and type definitions for entity relationships.