diff --git a/src/Bundle/ChillReportBundle/DataFixtures/ORM/LoadReports.php b/src/Bundle/ChillReportBundle/DataFixtures/ORM/LoadReports.php index b8de60cf4..eeaffe0b7 100644 --- a/src/Bundle/ChillReportBundle/DataFixtures/ORM/LoadReports.php +++ b/src/Bundle/ChillReportBundle/DataFixtures/ORM/LoadReports.php @@ -14,6 +14,7 @@ namespace Chill\ReportBundle\DataFixtures\ORM; use Chill\CustomFieldsBundle\Entity\CustomField; use Chill\MainBundle\DataFixtures\ORM\LoadScopes; use Chill\MainBundle\DataFixtures\ORM\LoadUsers; +use Chill\PersonBundle\Entity\Person; use Chill\ReportBundle\Entity\Report; use DateTime; use Doctrine\Common\DataFixtures\AbstractFixture; @@ -61,7 +62,7 @@ class LoadReports extends AbstractFixture implements ContainerAwareInterface, Or private function createExpected(ObjectManager $manager) { $charline = $this->container->get('doctrine.orm.entity_manager') - ->getRepository('ChillPersonBundle:Person') + ->getRepository(Person::class) ->findOneBy(['firstName' => 'Charline', 'lastName' => 'DEPARDIEU']); if (null !== $charline) {