public function getCoAppApplicant() { return $this->hasOne(AppApplicant::className(), ['id_application' => 'id_application'])->where(['id_app_applicant_type' => 2]); }
public function getAppApplicants() { return $this->hasMany(AppApplicant::className(), ['id_application' => 'id_application']); }
public function getClient() { return $this->hasOne(AppApplicant::className(), ['id_user' => 'id_user']); }