joinWith('egeResult') ->andWhere([ "{$tnEgeResult}.application_id" => $application->id, "{$tnBachelorResultCentralizedTesting}.id" => $egeId, ]) ->active() ->one(); } }