via() public abstract method
Specifies the relation associated with the junction table for use in relational query.
| public abstract $this via ( $relationName, callable $callable = null ) | ||
|---|---|---|
| $relationName | string |
The relation name. This refers to a relation declared in the primaryModel of the relation. |
| $callable | callable |
A PHP callback for customizing the relation associated with the junction table. Its signature should be |
| return | $this |
The relation object itself. |
Please login to continue.