From 09d13a554ad0ba4ba99b86a538c928f5e6614601 Mon Sep 17 00:00:00 2001 From: Ishiki Date: Tue, 23 Jul 2019 17:07:12 +0300 Subject: [PATCH] Fixture dependency on localization data This fixture breaks oro install because it runs before required fixture. Without this, this fixture will fail due to missing language. --- .../Data/ORM/UpdateEnumEntityTranslations.php | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/src/Oro/Bundle/EntityExtendBundle/Migrations/Data/ORM/UpdateEnumEntityTranslations.php b/src/Oro/Bundle/EntityExtendBundle/Migrations/Data/ORM/UpdateEnumEntityTranslations.php index fb5316978e3..c2d582c2c39 100644 --- a/src/Oro/Bundle/EntityExtendBundle/Migrations/Data/ORM/UpdateEnumEntityTranslations.php +++ b/src/Oro/Bundle/EntityExtendBundle/Migrations/Data/ORM/UpdateEnumEntityTranslations.php @@ -3,6 +3,7 @@ namespace Oro\Bundle\EntityExtendBundle\Migrations\Date\ORM; use Doctrine\Common\DataFixtures\AbstractFixture; +use Doctrine\Common\DataFixtures\DependentFixtureInterface; use Doctrine\Common\Persistence\ObjectManager; use Oro\Bundle\EntityConfigBundle\Config\ConfigManager; use Oro\Bundle\EntityConfigBundle\Config\Id\FieldConfigId; @@ -20,7 +21,10 @@ /** * Adds translations to enum entity in case of their absence */ -class UpdateEnumEntityTranslations extends AbstractFixture implements VersionedFixtureInterface, ContainerAwareInterface +class UpdateEnumEntityTranslations extends AbstractFixture implements + VersionedFixtureInterface, + ContainerAwareInterface, + DependentFixtureInterface { use ContainerAwareTrait; @@ -42,6 +46,14 @@ public function getVersion() { return '1.0'; } + + /** + * {@inheritdoc} + */ + public function getDependencies() + { + return [LoadLocalizationData::class]; + } /** * {@inheritdoc}