public function innerJoinWith($with, $eagerLoading = true)
{
return $this->joinWith($with, $eagerLoading, 'INNER JOIN');
}
public function filterQuery(ActiveQuery $query) { if ($this->type) { $query->innerJoinWith('type'); $query->andWhere(['{{death_reason_type}}.[[key]]' => $this->type]); } return $query; }