From 559908741345a8de61801a895d25c69856fdd099 Mon Sep 17 00:00:00 2001 From: Jonas Hoppe Date: Fri, 13 Dec 2019 16:42:37 +0100 Subject: [PATCH] Doctrine\Common\Persistence\ObjectManager is deprecated but you cant use the new Doctrine\Persistence\ObjectManager because of TypeHinting. --- lib/Doctrine/Common/DataFixtures/FixtureInterface.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/lib/Doctrine/Common/DataFixtures/FixtureInterface.php b/lib/Doctrine/Common/DataFixtures/FixtureInterface.php index 3cc3fc79..0abe2313 100644 --- a/lib/Doctrine/Common/DataFixtures/FixtureInterface.php +++ b/lib/Doctrine/Common/DataFixtures/FixtureInterface.php @@ -4,7 +4,8 @@ namespace Doctrine\Common\DataFixtures; -use Doctrine\Common\Persistence\ObjectManager; +use Doctrine\Common\Persistence\ObjectManager as DeprecatedManager; +use Doctrine\Persistence\ObjectManager; /** * Interface contract for fixture classes to implement. @@ -13,6 +14,7 @@ interface FixtureInterface { /** * Load data fixtures with the passed EntityManager + * @param ObjectManager|DeprecatedManager $manager */ - public function load(ObjectManager $manager); + public function load($manager); }