Remove creation of AccompanyingPeriod on person creation

This commit is contained in:
2021-07-22 15:36:36 +00:00
parent 65198937c0
commit 8030792eb6
9 changed files with 78 additions and 75 deletions

View File

@@ -183,6 +183,14 @@ class LoadPeople extends AbstractFixture implements OrderedFixtureInterface, Con
private function addAPerson(array $person, ObjectManager $manager)
{
$p = new Person();
$p->addAccompanyingPeriod(
new AccompanyingPeriod(
(new \DateTime())
->sub(
new \DateInterval('P'.\random_int(0, 180).'D')
)
)
);
foreach ($person as $key => $value) {
switch ($key) {