Fixtures/fix loading people

This commit is contained in:
2021-08-17 20:01:29 +00:00
parent 4cf676858e
commit c7cc2c7596
11 changed files with 453 additions and 434 deletions

View File

@@ -6,7 +6,6 @@ use Doctrine\Common\DataFixtures\AbstractFixture;
use Doctrine\Common\DataFixtures\DependentFixtureInterface;
use Chill\PersonBundle\Entity\AccompanyingPeriod;
use Chill\MainBundle\DataFixtures\ORM\LoadAbstractNotificationsTrait;
use Chill\PersonBundle\DataFixtures\ORM\LoadAccompanyingPeriod;
/**
* Load notififications into database
@@ -19,7 +18,7 @@ class LoadAccompanyingPeriodNotifications extends AbstractFixture implements Dep
[
'message' => 'Hello !',
'entityClass' => AccompanyingPeriod::class,
'entityRef' => LoadAccompanyingPeriod::ACCOMPANYING_PERIOD,
'entityRef' => null,
'sender' => 'center a_social',
'addressees' => [
'center a_social',
@@ -30,10 +29,15 @@ class LoadAccompanyingPeriodNotifications extends AbstractFixture implements Dep
]
];
protected function getEntityRef()
{
return null;
}
public function getDependencies()
{
return [
LoadAccompanyingPeriod::class,
LoadPeople::class,
];
}
}