diff --git a/app/src/DataFixtures/Demo/ReadyCategorySeoDataFixture.php b/app/src/DataFixtures/Demo/ReadyCategorySeoDataFixture.php index 6c529e3727..40fbe912a0 100644 --- a/app/src/DataFixtures/Demo/ReadyCategorySeoDataFixture.php +++ b/app/src/DataFixtures/Demo/ReadyCategorySeoDataFixture.php @@ -54,13 +54,13 @@ public function load(ObjectManager $manager) 'ordering' => ProductListOrderingConfig::ORDER_BY_PRIORITY, 'parameterValueIdsByParameterIds' => [ // 'Water Tank Volume' => 2 l - 38 => 75, + 38 => $this->parameterFacade->getParameterValueByValueTextAndLocale(t('2 l', [], Translator::DATA_FIXTURES_TRANSLATION_DOMAIN, $firstDomainLocale), $firstDomainLocale)->getId(), // 'Bean Hopper Capacity' => 400 g - 40 => 79, + 40 => $this->parameterFacade->getParameterValueByValueTextAndLocale(t('400 g', [], Translator::DATA_FIXTURES_TRANSLATION_DOMAIN, $firstDomainLocale), $firstDomainLocale)->getId(), // 'Pressure' => '15 bar' - 37 => 73, + 37 => $this->parameterFacade->getParameterValueByValueTextAndLocale(t('15 bar', [], Translator::DATA_FIXTURES_TRANSLATION_DOMAIN, $firstDomainLocale), $firstDomainLocale)->getId(), // 'Milk Container Capacity' => '600 ml' - 39 => 77, + 39 => $this->parameterFacade->getParameterValueByValueTextAndLocale(t('600 ml', [], Translator::DATA_FIXTURES_TRANSLATION_DOMAIN, $firstDomainLocale), $firstDomainLocale)->getId(), ], ]; @@ -87,7 +87,7 @@ public function load(ObjectManager $manager) $choseCategorySeoMixCombinationArray['ordering'] = ProductListOrderingConfig::ORDER_BY_PRIORITY; $choseCategorySeoMixCombinationArray['parameterValueIdsByParameterIds'] = [ // 'HDMI' => 'No' - 5 => 11, + 5 => $this->parameterFacade->getParameterValueByValueTextAndLocale(t('No', [], Translator::DATA_FIXTURES_TRANSLATION_DOMAIN, $firstDomainLocale), $firstDomainLocale)->getId(), ]; $this->createReadyCategorySeoMix( ChoseCategorySeoMixCombination::createFromArray($choseCategorySeoMixCombinationArray), @@ -101,9 +101,9 @@ public function load(ObjectManager $manager) $choseCategorySeoMixCombinationArray['parameterValueIdsByParameterIds'] = [ // 'Screen size' => '30"' - 1 => 9, + 1 => $this->parameterFacade->getParameterValueByValueTextAndLocale(t('30"', [], Translator::DATA_FIXTURES_TRANSLATION_DOMAIN, $firstDomainLocale), $firstDomainLocale)->getId(), // 'Technology' => 'LED' - 2 => 3, + 2 => $this->parameterFacade->getParameterValueByValueTextAndLocale(t('LED', [], Translator::DATA_FIXTURES_TRANSLATION_DOMAIN, $firstDomainLocale), $firstDomainLocale)->getId(), ]; $this->createReadyCategorySeoMix( ChoseCategorySeoMixCombination::createFromArray($choseCategorySeoMixCombinationArray), @@ -136,11 +136,11 @@ public function load(ObjectManager $manager) $choseCategorySeoMixCombinationArray['flagId'] = null; $choseCategorySeoMixCombinationArray['parameterValueIdsByParameterIds'] = [ // 'USB' => 'Yes' - 4 => 7, + 4 => $this->parameterFacade->getParameterValueByValueTextAndLocale(t('Yes', [], Translator::DATA_FIXTURES_TRANSLATION_DOMAIN, $firstDomainLocale), $firstDomainLocale)->getId(), // 'Technology' => 'LED' - 2 => 3, + 2 => $this->parameterFacade->getParameterValueByValueTextAndLocale(t('LED', [], Translator::DATA_FIXTURES_TRANSLATION_DOMAIN, $firstDomainLocale), $firstDomainLocale)->getId(), // 'Resolution' => '1920×1080 (Full HD)' - 3 => 5, + 3 => $this->parameterFacade->getParameterValueByValueTextAndLocale(t('1920×1080 (Full HD)', [], Translator::DATA_FIXTURES_TRANSLATION_DOMAIN, $firstDomainLocale), $firstDomainLocale)->getId(), ]; $this->createReadyCategorySeoMix( ChoseCategorySeoMixCombination::createFromArray($choseCategorySeoMixCombinationArray), @@ -156,8 +156,8 @@ public function load(ObjectManager $manager) $choseCategorySeoMixCombinationArray['flagId'] = null; $choseCategorySeoMixCombinationArray['parameterValueIdsByParameterIds'] = [ - // 'Colour' => 'Black' - 63 => 210, + // 'Colour' => 'black' + 63 => $this->parameterFacade->getParameterValueByValueTextAndLocale(t('black', [], Translator::DATA_FIXTURES_TRANSLATION_DOMAIN, $firstDomainLocale), $firstDomainLocale)->getId(), ]; $this->createReadyCategorySeoMix( ChoseCategorySeoMixCombination::createFromArray($choseCategorySeoMixCombinationArray), @@ -172,8 +172,8 @@ public function load(ObjectManager $manager) ); $choseCategorySeoMixCombinationArray['parameterValueIdsByParameterIds'] = [ - // 'Colour' => 'Red' - 63 => 206, + // 'Colour' => 'red' + 63 => $this->parameterFacade->getParameterValueByValueTextAndLocale(t('red', [], Translator::DATA_FIXTURES_TRANSLATION_DOMAIN, $firstDomainLocale), $firstDomainLocale)->getId(), ]; $this->createReadyCategorySeoMix( ChoseCategorySeoMixCombination::createFromArray($choseCategorySeoMixCombinationArray),