From c4aa3fae42be349c56989bf9332e556c41bf1bb7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sylvain=20Raye=CC=81?= <1337461+sylvainraye@users.noreply.github.com> Date: Mon, 2 Sep 2019 09:23:27 +0200 Subject: [PATCH] BUGFIX: Diamante dashboard depends on Oro User Bundle otherwise installation crash --- .../Migrations/Data/ORM/DefaultSupportDashboard.php | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/src/Diamante/DistributionBundle/Migrations/Data/ORM/DefaultSupportDashboard.php b/src/Diamante/DistributionBundle/Migrations/Data/ORM/DefaultSupportDashboard.php index ec4f024c6..88f3cb15b 100644 --- a/src/Diamante/DistributionBundle/Migrations/Data/ORM/DefaultSupportDashboard.php +++ b/src/Diamante/DistributionBundle/Migrations/Data/ORM/DefaultSupportDashboard.php @@ -14,14 +14,17 @@ */ namespace Diamante\DistributionBundle\Migrations\Data\ORM; +use Doctrine\Common\DataFixtures\DependentFixtureInterface; use Doctrine\Common\Persistence\ObjectManager; -use Oro\Bundle\DashboardBundle\Model\DashboardModel as Dashboard; -use Oro\Bundle\DashboardBundle\Entity\Widget; -use Oro\Bundle\DashboardBundle\Entity\WidgetState; use Oro\Bundle\DashboardBundle\Migrations\Data\ORM\AbstractDashboardFixture; -class DefaultSupportDashboard extends AbstractDashboardFixture +class DefaultSupportDashboard extends AbstractDashboardFixture implements DependentFixtureInterface { + public function getDependencies() + { + return ['Oro\Bundle\UserBundle\Migrations\Data\ORM\LoadRolesData']; + } + /** * @param ObjectManager $manager */