mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-06-07 18:44:08 +00:00
fix loading report: use FQDN instead of entity shortcut
This commit is contained in:
parent
e1fe2a396f
commit
afdc32d416
@ -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) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user