mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-08-21 07:03:49 +00:00
datafixture relationship: attempt
This commit is contained in:
@@ -106,6 +106,8 @@ class LoadPeople extends AbstractFixture implements OrderedFixtureInterface, Con
|
||||
|
||||
protected UserRepository $userRepository;
|
||||
|
||||
public const PERSON = 'person';
|
||||
|
||||
public function __construct(
|
||||
Registry $workflowRegistry,
|
||||
SocialIssueRepository $socialIssueRepository,
|
||||
@@ -257,6 +259,8 @@ class LoadPeople extends AbstractFixture implements OrderedFixtureInterface, Con
|
||||
$manager->persist($person);
|
||||
$manager->persist($accompanyingPeriod);
|
||||
echo "add person'".$person->__toString()."'\n";
|
||||
|
||||
$this->addReference(self::PERSON, $person);
|
||||
}
|
||||
|
||||
private function getRandomUser(): User
|
||||
|
Reference in New Issue
Block a user