From f05770235fb4e8770e8f18ad408736a17bac7bd6 Mon Sep 17 00:00:00 2001 From: Tchama Date: Fri, 4 Sep 2020 20:35:32 +0200 Subject: [PATCH] fix deprecated ObjectManager path in data fixtures scripts --- DataFixtures/ORM/LoadOption.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/DataFixtures/ORM/LoadOption.php b/DataFixtures/ORM/LoadOption.php index 0051dbb83..4a8093fa3 100644 --- a/DataFixtures/ORM/LoadOption.php +++ b/DataFixtures/ORM/LoadOption.php @@ -22,6 +22,7 @@ namespace Chill\CustomFieldsBundle\DataFixtures\ORM; use Doctrine\Common\DataFixtures\AbstractFixture; use Doctrine\Common\DataFixtures\OrderedFixtureInterface; use Chill\CustomFieldsBundle\Entity\CustomFieldLongChoice\Option; +use Doctrine\Persistence\ObjectManager; error_reporting(0); /** @@ -62,7 +63,7 @@ class LoadOption extends AbstractFixture implements OrderedFixtureInterface return 1000; } - public function load(\Doctrine\Common\Persistence\ObjectManager $manager) + public function load(ObjectManager $manager) { echo "Loading Options \n"; // load companies