CampaignRef)) { $reference = ReferenceTypeManager::GetOrCreateReference(StoredAdmissionCampaignReferenceType::class, $xmlData->CampaignRef); $admission_campaign = AdmissionCampaign::findOne([ 'ref_id' => $reference->id, ]); } else { $admission_campaign = AdmissionCampaign::findOne([ 'code' => (string)$xmlData->IdPK, ]); } return $admission_campaign; } public static function FetchAdmissionCampaign() { return \Yii::$app->soapClientAbit->load('GetPK', [], DebuggingSoap::getInstance()->isLoggingForDictionarySoapEnabled); } }