* @author Carsten Brandt * @since 2.0 */ interface ActiveRelationInterface extends ActiveQueryInterface { /** * Specifies the relation associated with the pivot table. * @param string $relationName the relation name. This refers to a relation declared in [[primaryModel]]. * @param callable $callable a PHP callback for customizing the relation associated with the pivot table. * Its signature should be `function($query)`, where `$query` is the query to be customized. * @return static the relation object itself. */ public function via($relationName, $callable = null); }