FreeformReport::applyRelation
Traverse the relationship fields, and add the table mappings to the query object state. This has to be called in any overloaded {@link SearchFilter->apply()} methods manually.
Signature
protected function applyRelation(
$modelClass,
SQLQuery
$query,
string|array
$relation )
Parameters
Returns
- The
- model class of the related item