mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-11-09 13:48:23 +00:00
Add second parameter to add-, get-, hasReference() methods in fixture classes
This commit is contained in:
@@ -56,7 +56,7 @@ class LoadActivityReason extends AbstractFixture implements OrderedFixtureInterf
|
||||
$activityReason = (new ActivityReason())
|
||||
->setName($r['name'])
|
||||
->setActive(true)
|
||||
->setCategory($this->getReference($r['category']));
|
||||
->setCategory($this->getReference($r['category'], null));
|
||||
$manager->persist($activityReason);
|
||||
$reference = 'activity_reason_'.$r['name']['en'];
|
||||
$this->addReference($reference, $activityReason);
|
||||
|
||||
Reference in New Issue
Block a user