mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-06-12 21:34:25 +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\CustomFieldsBundle\Entity\CustomField;
|
||||||
use Chill\MainBundle\DataFixtures\ORM\LoadScopes;
|
use Chill\MainBundle\DataFixtures\ORM\LoadScopes;
|
||||||
use Chill\MainBundle\DataFixtures\ORM\LoadUsers;
|
use Chill\MainBundle\DataFixtures\ORM\LoadUsers;
|
||||||
|
use Chill\PersonBundle\Entity\Person;
|
||||||
use Chill\ReportBundle\Entity\Report;
|
use Chill\ReportBundle\Entity\Report;
|
||||||
use DateTime;
|
use DateTime;
|
||||||
use Doctrine\Common\DataFixtures\AbstractFixture;
|
use Doctrine\Common\DataFixtures\AbstractFixture;
|
||||||
@ -61,7 +62,7 @@ class LoadReports extends AbstractFixture implements ContainerAwareInterface, Or
|
|||||||
private function createExpected(ObjectManager $manager)
|
private function createExpected(ObjectManager $manager)
|
||||||
{
|
{
|
||||||
$charline = $this->container->get('doctrine.orm.entity_manager')
|
$charline = $this->container->get('doctrine.orm.entity_manager')
|
||||||
->getRepository('ChillPersonBundle:Person')
|
->getRepository(Person::class)
|
||||||
->findOneBy(['firstName' => 'Charline', 'lastName' => 'DEPARDIEU']);
|
->findOneBy(['firstName' => 'Charline', 'lastName' => 'DEPARDIEU']);
|
||||||
|
|
||||||
if (null !== $charline) {
|
if (null !== $charline) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user