mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2026-03-17 11:27:45 +00:00
Add second parameter to add-, get-, hasReference() methods in fixture classes
This commit is contained in:
@@ -46,7 +46,7 @@ class LoadRelationships extends Fixture implements DependentFixtureInterface
|
||||
->setFromPerson($this->getRandomPerson($this->em))
|
||||
->setToPerson($this->getRandomPerson($this->em))
|
||||
->setRelation($this->getReference(LoadRelations::RELATION_KEY.
|
||||
random_int(0, \count(LoadRelations::RELATIONS) - 1)))
|
||||
random_int(0, \count(LoadRelations::RELATIONS) - 1), null))
|
||||
->setReverse((bool) random_int(0, 1))
|
||||
->setCreatedBy($user)
|
||||
->setUpdatedBy($user)
|
||||
@@ -74,6 +74,6 @@ class LoadRelationships extends Fixture implements DependentFixtureInterface
|
||||
{
|
||||
$userRef = array_rand(LoadUsers::$refs);
|
||||
|
||||
return $this->getReference($userRef);
|
||||
return $this->getReference($userRef, null);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user