mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-08-20 22:53:49 +00:00
Remove creation of AccompanyingPeriod on person creation
This commit is contained in:
@@ -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) {
|
||||
|
Reference in New Issue
Block a user