fix loading report: use FQDN instead of entity shortcut

This commit is contained in:
Julien Fastré 2022-04-30 00:00:52 +02:00
parent e1fe2a396f
commit afdc32d416

View File

@ -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) {