module Rotor::Through

The keys of associations through a join model, from its belongs_tos, found when an association is used (a query, a preload): the table blocks of the owner, the join model and the target have all run then, in whatever order. (A few comparisons of the join model's associations: found again at each use, not kept.)

/home/runner/work/rotor/rotor/src/association.qz:119

Class methods

def self.keys(owner: Type[Object], a: Rotor::Association) -> Rotor::ThroughKeys

The keys of owner's association a: the join model's belongs_to the target (the one a.source names, else the one whose target is a.target) and its belongs_to the owner (another). Raises Rotor::SchemaError naming both classes when the join model has none of them, or several where one was needed.

/home/runner/work/rotor/rotor/src/association.qz:125