protected function setBrandField()
    {
        $sBrandID = array_get($this->arImportData, 'brand_id');
        if ($sBrandID === null) {
            return;
        }

        //Find brand by external ID
        $obBrand = Brand::getByExternalID($sBrandID)->first();
        if (empty($obBrand)) {
            $this->arImportData['brand_id'] = null;
        } else {
            $this->arImportData['brand_id'] = $obBrand->id;
        }
    }
protected function setBrandField()
    {
        $sBrandID = array_get($this->arImportData, 'brand_id');
        if ($sBrandID === null) {
            return;
        }

        //Find brand by external ID
        $obBrand = Brand::getByExternalID($sBrandID)->first();
        if (empty($obBrand)) {
            $this->arImportData['brand_id'] = null;
        } else {
            $this->arImportData['brand_id'] = $obBrand->id;
        }
    }
protected function setBrandField ( ) { $ sBrandID = array_get ( $ this -> arImportData , 'brand_id' ) ; if ( $ sBrandID === null ) { return ; } //Find brand by external ID $ obBrand = Brand :: getByExternalID ( $ sBrandID ) -> first ( ) ; if ( empty ( $ obBrand ) ) { $ this -> arImportData [ 'brand_id' ] = null ; } else { $ this -> arImportData [ 'brand_id' ] = $ obBrand -> id ; } }
Set brand_id filed value
Set brand_id filed value