mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-08-28 02:23:51 +00:00
Add second parameter to add-, get-, hasReference() methods in fixture classes
This commit is contained in:
@@ -37,7 +37,7 @@ class LoadCalendarACL extends Fixture implements OrderedFixtureInterface
|
||||
|
||||
foreach (LoadPermissionsGroup::$refs as $permissionGroupRef) {
|
||||
/** @var PermissionsGroup $group */
|
||||
$group = $this->getReference($permissionGroupRef);
|
||||
$group = $this->getReference($permissionGroupRef, null);
|
||||
|
||||
foreach ($roleScopes as $scope) {
|
||||
$group->addRoleScope($scope);
|
||||
|
@@ -63,6 +63,6 @@ class LoadInvite extends Fixture implements FixtureGroupInterface
|
||||
{
|
||||
$userRef = array_rand(LoadUsers::$refs);
|
||||
|
||||
return $this->getReference($userRef);
|
||||
return $this->getReference($userRef, null);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user